PageSpeed settings

1,345 views
Skip to first unread message

Hendra Christian

unread,
Mar 17, 2016, 8:54:23 AM3/17/16
to ngx-pagespeed-discuss
I have the following errors showing on my pagespeed_admin/message_history

[Thu, 17 Mar 2016 12:46:11 GMT] [Info] [21746] HTTPCache key=https://images.primanada.com/image/cache/products/yamaha-mgp12x-side-160x160.jpg fragment=primanada.com: remembering recent failure for 299 seconds.
[Thu, 17 Mar 2016 12:46:11 GMT] [Info] [21746] HTTPCache key=https://images.primanada.com/image/cache/products/krezt-hdt-9903-usb-600x600.jpg fragment=primanada.com: remembering recent failure for 299 seconds.
[Thu, 17 Mar 2016 12:46:11 GMT] [Info] [21746] HTTPCache key=https://images.primanada.com/image/cache/products/yamaha-a15w-50x50.jpg fragment=primanada.com: remembering recent failure for 299 seconds.
[Thu, 17 Mar 2016 12:46:11 GMT] [Info] [21746] Cache entry is expired: https://images.primanada.com/image/cache/products/yamaha-mgp12x-side-160x160.jpg (fragment=primanada.com)
[Thu, 17 Mar 2016 12:46:11 GMT] [Info] [21746] HTTPCache key=https://images.primanada.com/image/cache/products/yamaha-trb-1005j-natural-50x50.jpg fragment=primanada.com: remembering recent failure for 124 seconds.
[Thu, 17 Mar 2016 12:46:11 GMT] [Info] [21746] Cache entry is expired: https://images.primanada.com/image/cache/products/krezt-hdt-9903-usb-600x600.jpg (fragment=primanada.com)
[Thu, 17 Mar 2016 12:46:11 GMT] [Info] [21746] HTTPCache key=https://images.primanada.com/image/cache/products/yamaha-trb-1005j-natural-50x50.jpg fragment=primanada.com: remembering recent failure for 124 seconds.
[Thu, 17 Mar 2016 12:46:11 GMT] [Info] [21746] Cache entry is expired: https://images.primanada.com/image/cache/products/yamaha-a15w-50x50.jpg (fragment=primanada.com)
[Thu, 17 Mar 2016 12:46:11 GMT] [Info] [21746] Could not rewrite resource in-place because URL is not in cache: https://www.primanada.com/pro-audio/audio-processor/produk/pro-audio/krezt-hdt-9903-usb
[Thu, 17 Mar 2016 12:46:11 GMT] [Info] [21746] Trying to serve rewritten resource in-place: https://www.primanada.com/pro-audio/audio-processor/produk/pro-audio/krezt-hdt-9903-usb
[Thu, 17 Mar 2016 12:46:11 GMT] [Info] [21746] Could not rewrite resource in-place because URL is not in cache: https://www.primanada.com/pro-audio/audio-processor/produk/pro-audio/krezt-hdt-9903-usb
[Thu, 17 Mar 2016 12:46:11 GMT] [Info] [21746] Trying to serve rewritten resource in-place: https://www.primanada.com/pro-audio/audio-processor/produk/pro-audio/krezt-hdt-9903-usb
[Thu, 17 Mar 2016 12:46:09 GMT] [Info] [21746] HTTPCache key=https://images.primanada.com/image/cache/products/mackie-hr624mk2-back-160x160.jpg fragment=primanada.com: remembering recent failure for 299 seconds.
[Thu, 17 Mar 2016 12:46:09 GMT] [Info] [21746] HTTPCache key=https://images.primanada.com/image/cache/products/krezt-was-010-uhf-600x600.jpg fragment=primanada.com: remembering recent failure for 299 seconds.
[Thu, 17 Mar 2016 12:46:09 GMT] [Info] [21746] HTTPCache key=https://images.primanada.com/image/cache/products/roland-rd-300nx-50x50.jpg fragment=primanada.com: remembering recent failure for 299 seconds.
[Thu, 17 Mar 2016 12:46:09 GMT] [Info] [21746] HTTPCache key=https://images.primanada.com/image/cache/products/sennheiser-ew%20500-935-g3-50x50.jpg fragment=primanada.com: remembering recent failure for 78 seconds.
[Thu, 17 Mar 2016 12:46:09 GMT] [Info] [21746] Cache entry is expired: https://images.primanada.com/image/cache/products/mackie-hr624mk2-back-160x160.jpg (fragment=primanada.com)
[Thu, 17 Mar 2016 12:46:09 GMT] [Info] [21746] HTTPCache key=https://images.primanada.com/image/cache/products/jbl-prx425-woofer-160x160.jpg fragment=primanada.com: remembering recent failure for 256 seconds.
[Thu, 17 Mar 2016 12:46:09 GMT] [Info] [21746] Cache entry is expired: https://images.primanada.com/image/cache/products/krezt-was-010-uhf-600x600.jpg (fragment=primanada.com)
[Thu, 17 Mar 2016 12:46:09 GMT] [Info] [21746] Cache entry is expired: https://images.primanada.com/image/cache/products/roland-rd-300nx-50x50.jpg (fragment=primanada.com)
[Thu, 17 Mar 2016 12:46:09 GMT] [Info] [21746] HTTPCache key=https://images.primanada.com/image/cache/products/sennheiser-ew%20500-935-g3-50x50.jpg fragment=primanada.com: remembering recent failure for 78 seconds.
[Thu, 17 Mar 2016 12:46:08 GMT] [Info] [21746] Could not rewrite resource in-place because URL is not in cache: https://www.primanada.com/pro-audio/audio-processor/produk/pro-audio/krezt-was-010-uhf
[Thu, 17 Mar 2016 12:46:08 GMT] [Info] [21746] Trying to serve rewritten resource in-place: https://www.primanada.com/pro-audio/audio-processor/produk/pro-audio/krezt-was-010-uhf
[Thu, 17 Mar 2016 12:46:08 GMT] [Info] [21746] Could not rewrite resource in-place because URL is not in cache: https://www.primanada.com/pro-audio/audio-processor/produk/pro-audio/krezt-was-010-uhf
...


My conf is as following:
pagespeed Domain http*://*.primanada.com;
pagespeed
Domain http*://*.google.com;
pagespeed
Domain http*://*.sharethis.com;
pagespeed
Domain http*://*.googleapis.com;
pagespeed
Domain http*://*.zopim.com;
pagespeed
Domain http*://*.yamaha.*;

Server/Site Setup:
- Nginx 1.9.12
- PageSpeed 1.10.33.6-0
- Use Cloudflare CDN

Site: https://www.primanada.com and all assets (img, css, js) is using subdomain https://images.primanada.com for parallelization.

Any clue on how to setup the conf to solve the issue?

Jeff Kaufman

unread,
Mar 17, 2016, 10:40:34 AM3/17/16
to ngx-pagesp...@googlegroups.com
Those are info messages, and it doesn't look to me like any of them
represent real problems. PageSpeed spits out a lot of info-level
messages for debugging, but they're mostly not going to indicate
problems.
> --
> You received this message because you are subscribed to the Google Groups
> "ngx-pagespeed-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ngx-pagespeed-di...@googlegroups.com.
> Visit this group at https://groups.google.com/group/ngx-pagespeed-discuss.
> For more options, visit https://groups.google.com/d/optout.

Hendra Christian

unread,
Mar 18, 2016, 2:24:59 AM3/18/16
to ngx-pagespeed-discuss
Maybe to clarify, from the message from before, I want to know what is:
1. remembering recent failure for 299 seconds => what failure? how to fix this?
2. Cache entry is expired => does pagespeed just report this and will do recaching itself? or is this a warning that I need to take action on?
3. Could not rewrite resource in-place because URL is not in cache => again, is this just a notice, or should I do something/some settings about this?

Anywa, I just removed those "pagespeed Domain" settings cause it seems to break some functionality on the website (most probably js file).

Now, I got the following in message history:
[Fri, 18 Mar 2016 06:13:56 GMT] [Info] [8418] No permission to rewrite 'https://images.primanada.com/image/cache/data/journal2/transparent-250x250.png'
[Fri, 18 Mar 2016 06:13:56 GMT] [Info] [8418] No permission to rewrite 'https://images.primanada.com/image/cache/data/journal2/transparent-250x250.png'
[Fri, 18 Mar 2016 06:13:56 GMT] [Info] [8418] No permission to rewrite 'https://images.primanada.com/image/cache/data/journal2/transparent-250x250.png'
[Fri, 18 Mar 2016 06:13:56 GMT] [Info] [8418] No permission to rewrite 'https://images.primanada.com/image/cache/catalog/primanada-logo-200x56.png'
[Fri, 18 Mar 2016 06:13:56 GMT] [Info] [8418] No permission to rewrite 'https://images.primanada.com/journal-cache/_80da01fb152b13daf116181d8c2a0664.js'
[Fri, 18 Mar 2016 06:13:56 GMT] [Info] [8418] No permission to rewrite 'https://images.primanada.com/journal-cache/_8537f7c28720cb7958f660f96bf2fee9.js'
[Fri, 18 Mar 2016 06:13:56 GMT] [Info] [8418] No permission to rewrite 'https://images.primanada.com/journal-cache/_80da01fb152b13daf116181d8c2a0664.js'
[Fri, 18 Mar 2016 06:13:56 GMT] [Info] [8418] No permission to rewrite 'https://images.primanada.com/journal-cache/_8537f7c28720cb7958f660f96bf2fee9.js'
[Fri, 18 Mar 2016 06:13:56 GMT] [Info] [8418] No permission to rewrite 'https://images.primanada.com/journal-cache/_8537f7c28720cb7958f660f96bf2fee9.js'
[Fri, 18 Mar 2016 06:13:56 GMT] [Info] [8418] No permission to rewrite 'https://images.primanada.com/journal-cache/_87328a37bcf665f4e27114fa6eb7d78f.css'
[Fri, 18 Mar 2016 06:13:56 GMT] [Info] [8418] No permission to rewrite 'https://fonts.googleapis.com/css?family=Ubuntu:700,500,regular%7CRoboto:regular&subset=latin'
[Fri, 18 Mar 2016 06:13:56 GMT] [Info] [8418] No permission to rewrite 'https://images.primanada.com/journal-cache/_87328a37bcf665f4e27114fa6eb7d78f.css'
[Fri, 18 Mar 2016 06:13:56 GMT] [Info] [8418] No permission to rewrite 'https://fonts.googleapis.com/css?family=Ubuntu:700,500,regular%7CRoboto:regular&subset=latin'
[Fri, 18 Mar 2016 06:13:56 GMT] [Info] [8418] No permission to rewrite 'https://images.primanada.com/journal-cache/_87328a37bcf665f4e27114fa6eb7d78f.css'
[Fri, 18 Mar 2016 06:13:56 GMT] [Info] [8418] No permission to rewrite 'https://fonts.googleapis.com/css?family=Ubuntu:700,500,regular%7CRoboto:regular&subset=latin'
[Fri, 18 Mar 2016 06:13:55 GMT] [Info] [8418] Could not rewrite resource in-place because URL is not in cache: https://www.primanada.com/produk/alat-musik/keyboard-piano-dan-organ?gclid=CjwKEAjwq6m3BRCP7IfMq6Oo9gESJACRc0bN6951k0_hRZg98R7FCyLT6Bqe5JfQ_G__e01Ety4n0RoCATbw_wcB
[Fri, 18 Mar 2016 06:13:55 GMT] [Info] [8418] Trying to serve rewritten resource in-place: https://www.primanada.com/produk/alat-musik/keyboard-piano-dan-organ?gclid=CjwKEAjwq6m3BRCP7IfMq6Oo9gESJACRc0bN6951k0_hRZg98R7FCyLT6Bqe5JfQ_G__e01Ety4n0RoCATbw_wcB
[Fri, 18 Mar 2016 06:13:55 GMT] [Info] [8418] Could not rewrite resource in-place because URL is not in cache: https://www.primanada.com/produk/alat-musik/keyboard-piano-dan-organ?gclid=CjwKEAjwq6m3BRCP7IfMq6Oo9gESJACRc0bN6951k0_hRZg98R7FCyLT6Bqe5JfQ_G__e01Ety4n0RoCATbw_wcB
[Fri, 18 Mar 2016 06:13:55 GMT] [Info] [8418] Trying to serve rewritten resource in-place: https://www.primanada.com/produk/alat-musik/keyboard-piano-dan-organ?gclid=CjwKEAjwq6m3BRCP7IfMq6Oo9gESJACRc0bN6951k0_hRZg98R7FCyLT6Bqe5JfQ_G__e01Ety4n0RoCATbw_wcB
[Fri, 18 Mar 2016 06:13:51 GMT] [Info] [8419] Could not rewrite resource in-place because URL is not in cache: https://images.primanada.com/image/cache/products/russel-rsl-1248a-160x160.jpg
[Fri, 18 Mar 2016 06:13:51 GMT] [Info] [8419] Trying to serve rewritten resource in-place: https://images.primanada.com/image/cache/products/russel-rsl-1248a-160x160.jpg
[Fri, 18 Mar 2016 06:13:48 GMT] [Info] [8419] No permission to rewrite 'https://images.primanada.com/journal-cache/_80da01fb152b13daf116181d8c2a0664.js'
[Fri, 18 Mar 2016 06:13:48 GMT] [Info] [8419] No permission to rewrite 'https://images.primanada.com/image/cache/data/journal2/transparent-324x230.png'
[Fri, 18 Mar 2016 06:13:48 GMT] [Info] [8419] No permission to rewrite 'https://images.primanada.com/image/cache/data/journal2/transparent-324x230.png'
[Fri, 18 Mar 2016 06:13:48 GMT] [Info] [8419] No permission to rewrite 'https://images.primanada.com/image/cache/data/journal2/transparent-324x230.png'
[Fri, 18 Mar 2016 06:13:48 GMT] [Info] [8419] No permission to rewrite 'https://images.primanada.com/image/cache/blog/yamaha-dgx-660-cover-30x30.jpg'
[Fri, 18 Mar 2016 06:13:48 GMT] [Info] [8419] No permission to rewrite 'https://images.primanada.com/image/cache/products/audiocore-pa-0820-30x30.jpg'
[Fri, 18 Mar 2016 06:13:48 GMT] [Info] [8419] No permission to rewrite 'https://images.primanada.com/image/cache/blog/audiocore-wcs-1000-30x30.jpg'
[Fri, 18 Mar 2016 06:13:48 GMT] [Info] [8419] No permission to rewrite 'https://images.primanada.com/image/cache/blog/yamaha-p45-depan-30x30.JPG'

I think it's because the site is www.primanada.com but the assets in images.primanada.com (img, css, js) so pagespeed need me to explicitly state it.

Any thoughts and solution for this?

Jeffrey Crowell

unread,
Mar 18, 2016, 1:49:39 PM3/18/16
to ngx-pagespeed-discuss
Are images. and www. on the same host (do they both have pagespeed enabled?)

--
You received this message because you are subscribed to the Google Groups "ngx-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ngx-pagespeed-di...@googlegroups.com.

Hendra Christian

unread,
Mar 18, 2016, 2:43:50 PM3/18/16
to ngx-pagespeed-discuss
Yes, not only they are on the same host. They are actually the same exact folder. both point to the same folder for opencart (eg. www.primanada.com/image/logo.png and images.primanada.com/image/logo.png is exactly the same, same w/ js and css). The sole purpose was to have browser load them on parallel, it's also a feature of opencart.

--
You received this message because you are subscribed to the Google Groups "ngx-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ngx-pagespeed-discuss+unsub...@googlegroups.com.

Jeff Kaufman

unread,
Mar 18, 2016, 5:15:57 PM3/18/16
to ngx-pagesp...@googlegroups.com
With your domain settings, I think "http*://*.primanada.com" was good
and you should put it back: that should fix the "no permission to
rewrite" notices.

The other Domain ones you had are bad because they're telling
pagespeed "this is the name of another server which is running
pagespeed", which isn't true for google.com, sharethis.com, etc.

With "remembering recent failure for 299 seconds", it looks like
http://images.primanada.com/image/cache/products/yamaha-mgp12x-side-160x160.jpg
has two issues:

a) it has way too many headers, with lots of duplicates. [1] This
isn't really a problem for pagespeed, but it's probably a bug.

b) It's a redirect to
https://images.primanada.com/image/cache/products/yamaha-mgp12x-side-160x160.jpg
and PageSpeed doesn't follow redirects on resources.
https://github.com/pagespeed/mod_pagespeed/issues/262 Could you
change the url to the https version?

[1] See:

HTTP/1.1 301 Moved Permanently
Date: Fri, 18 Mar 2016 19:18:03 GMT
Content-Type: text/html
Transfer-Encoding: chunked
Connection: keep-alive
Set-Cookie: __cfduid=d1061e95b631d2217fb99f5a77dae46a51458328683;
expires=Sat, 18-Mar-17 19:18:03 GMT; path=/; domain=.primanada.com;
HttpOnly
Location: https://images.primanada.com/image/cache/products/yamaha-mgp12x-side-160x160.jpg
X-Frame-Options: SAMEORIGIN
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Content-Security-Policy: default-src 'self'; script-src 'self'
'unsafe-inline' 'unsafe-eval' https://www.google-analytics.com
https://connect.facebook.net; img-src 'self'
https://www.google-analytics.com https://s-static.ak.facebook.com;
style-src 'self' 'unsafe-inline' https://fonts.googleapis.com;
font-src 'self' https://themes.googleusercontent.com; frame-src
https://www.facebook.com https://s-static.ak.facebook.com; object-src
'none'
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Content-Security-Policy: default-src 'self'; script-src 'self'
'unsafe-inline' 'unsafe-eval' https://www.google-analytics.com
https://connect.facebook.net; img-src 'self'
https://www.google-analytics.com https://s-static.ak.facebook.com;
style-src 'self' 'unsafe-inline' https://fonts.googleapis.com;
font-src 'self' https://themes.googleusercontent.com; frame-src
https://www.facebook.com https://s-static.ak.facebook.com; object-src
'none'
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Content-Security-Policy: default-src 'self'; script-src 'self'
'unsafe-inline' 'unsafe-eval' https://www.google-analytics.com
https://connect.facebook.net; img-src 'self'
https://www.google-analytics.com https://s-static.ak.facebook.com;
style-src 'self' 'unsafe-inline' https://fonts.googleapis.com;
font-src 'self' https://themes.googleusercontent.com; frame-src
https://www.facebook.com https://s-static.ak.facebook.com; object-src
'none'
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Content-Security-Policy: default-src 'self'; script-src 'self'
'unsafe-inline' 'unsafe-eval' https://www.google-analytics.com
https://connect.facebook.net; img-src 'self'
https://www.google-analytics.com https://s-static.ak.facebook.com;
style-src 'self' 'unsafe-inline' https://fonts.googleapis.com;
font-src 'self' https://themes.googleusercontent.com; frame-src
https://www.facebook.com https://s-static.ak.facebook.com; object-src
'none'
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Content-Security-Policy: default-src 'self'; script-src 'self'
'unsafe-inline' 'unsafe-eval' https://www.google-analytics.com
https://connect.facebook.net; img-src 'self'
https://www.google-analytics.com https://s-static.ak.facebook.com;
style-src 'self' 'unsafe-inline' https://fonts.googleapis.com;
font-src 'self' https://themes.googleusercontent.com; frame-src
https://www.facebook.com https://s-static.ak.facebook.com; object-src
'none'
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Content-Security-Policy: default-src 'self'; script-src 'self'
'unsafe-inline' 'unsafe-eval' https://www.google-analytics.com
https://connect.facebook.net; img-src 'self'
https://www.google-analytics.com https://s-static.ak.facebook.com;
style-src 'self' 'unsafe-inline' https://fonts.googleapis.com;
font-src 'self' https://themes.googleusercontent.com; frame-src
https://www.facebook.com https://s-static.ak.facebook.com; object-src
'none'
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Content-Security-Policy: default-src 'self'; script-src 'self'
'unsafe-inline' 'unsafe-eval' https://www.google-analytics.com
https://connect.facebook.net; img-src 'self'
https://www.google-analytics.com https://s-static.ak.facebook.com;
style-src 'self' 'unsafe-inline' https://fonts.googleapis.com;
font-src 'self' https://themes.googleusercontent.com; frame-src
https://www.facebook.com https://s-static.ak.facebook.com; object-src
'none'
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Content-Security-Policy: default-src 'self'; script-src 'self'
'unsafe-inline' 'unsafe-eval' https://www.google-analytics.com
https://connect.facebook.net; img-src 'self'
https://www.google-analytics.com https://s-static.ak.facebook.com;
style-src 'self' 'unsafe-inline' https://fonts.googleapis.com;
font-src 'self' https://themes.googleusercontent.com; frame-src
https://www.facebook.com https://s-static.ak.facebook.com; object-src
'none'
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Content-Security-Policy: default-src 'self'; script-src 'self'
'unsafe-inline' 'unsafe-eval' https://www.google-analytics.com
https://connect.facebook.net; img-src 'self'
https://www.google-analytics.com https://s-static.ak.facebook.com;
style-src 'self' 'unsafe-inline' https://fonts.googleapis.com;
font-src 'self' https://themes.googleusercontent.com; frame-src
https://www.facebook.com https://s-static.ak.facebook.com; object-src
'none'
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Content-Security-Policy: default-src 'self'; script-src 'self'
'unsafe-inline' 'unsafe-eval' https://www.google-analytics.com
https://connect.facebook.net; img-src 'self'
https://www.google-analytics.com https://s-static.ak.facebook.com;
style-src 'self' 'unsafe-inline' https://fonts.googleapis.com;
font-src 'self' https://themes.googleusercontent.com; frame-src
https://www.facebook.com https://s-static.ak.facebook.com; object-src
'none'
CF-Cache-Status: HIT
Expires: Sat, 26 Mar 2016 19:18:03 GMT
Cache-Control: public, max-age=691200
Server: cloudflare-nginx
CF-RAY: 285b074116e2241a-IAD
>>>> > email to ngx-pagespeed-di...@googlegroups.com.
>>>> > Visit this group at
>>>> > https://groups.google.com/group/ngx-pagespeed-discuss.
>>>> > For more options, visit https://groups.google.com/d/optout.
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "ngx-pagespeed-discuss" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an
>>> email to ngx-pagespeed-di...@googlegroups.com.
>>> Visit this group at
>>> https://groups.google.com/group/ngx-pagespeed-discuss.
>>> For more options, visit https://groups.google.com/d/optout.
>>
>>
> --
> You received this message because you are subscribed to the Google Groups
> "ngx-pagespeed-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ngx-pagespeed-di...@googlegroups.com.

Hendra Christian

unread,
Mar 21, 2016, 1:58:28 AM3/21/16
to ngx-pagespeed-discuss
I was skeptical to add http*://*.primanada.com back cause some js was broken previously. but I tried it again and it looks to work fine now.

I attached the pagespeed history screenshot.

Regarding "remembering recent failure for 299 seconds",
a) what do you mean by too many headers w/ lots of duplicates?
b) I'm not sure how you get the http url, cause I have made sure that all url must be https. I also check my pagespeed history and it looks like all is https (w/ exception http://data.yamaha.jp which is external url).

By the way, my GTMetrix shows a lower score after enabling Domain http*://*.primanada.com. Pagespeed score was 95%, now down to 86% with complain to Optimize Images. Maybe I'm too hasty to conclude and should wait few days for CloudFlare to cache everything again.

>>>> > Visit this group at
>>>> > https://groups.google.com/group/ngx-pagespeed-discuss.
>>>> > For more options, visit https://groups.google.com/d/optout.
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "ngx-pagespeed-discuss" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an
>>> Visit this group at
>>> https://groups.google.com/group/ngx-pagespeed-discuss.
>>> For more options, visit https://groups.google.com/d/optout.
>>
>>
> --
> You received this message because you are subscribed to the Google Groups
> "ngx-pagespeed-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
2016-03-21_12-40_pagespeed.jpg

Hendra Christian

unread,
Mar 21, 2016, 1:59:15 AM3/21/16
to ngx-pagespeed-discuss

Jeff Kaufman

unread,
Mar 21, 2016, 11:04:58 AM3/21/16
to ngx-pagesp...@googlegroups.com
* It looks like you're using data-src for images. PageSpeed doesn't
optimize those by default, so setting:

pagespeed UrlValuedAttribute img data-src image

would tell pagespeed it can optimize those.

(see https://developers.google.com/speed/pagespeed/module/domains#url-valued-attributes)

* it looks like you're using html caching? PageSpeed only supports
downstream caching of html if you either (a) turn off all
url-modifying filters or (b) set up
https://developers.google.com/speed/pagespeed/module/downstream-caching
. Otherwise it might serve webps to browsers that don't understand it

* with the headers, I included an example of what I was seeing above,
but the X-Frame-Options, X-XSS-Protection, and Content-Security-Policy
headers were repeated eleven times on
http://images.primanada.com/image/cache/products/yamaha-mgp12x-side-160x160.jpg
and still are

* the http url came from me misreading your logs, sorry!
> --
> You received this message because you are subscribed to the Google Groups
> "ngx-pagespeed-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ngx-pagespeed-di...@googlegroups.com.

Hendra Christian

unread,
Mar 22, 2016, 1:48:36 AM3/22/16
to ngx-pagespeed-discuss
Regarding UrlValuedAttribute, does it then cache both "src" and "data-src"? Or would it then ignore "src" and will only cache "data-src"?

1. The caching mechanism is introduced by the Opencart theme I use. From what I understand, it seems that on page load, every image is using the src="transparent-widthxheight.png" and data-src="the-real-path-to-image" for the purpose of speeding up the initial page load process and would replace src with data-src via javascript when page is loaded.

When using developer tools (F12) in Chrome, there's no longer data-src attribute and src attribute is already replaced w/ the path in data-src, however using "View Source", it will show the original html which has src pointing to transparent.png and data-src to the real image.

Now, knowing this, should I cache src or data-src? or is it possible to do both?

2. I'm not sure with downstream caching, I'll have to look at that. All the caching effort I've done (or I'm aware is happening) are:
- CloudFlare caching
- Pagespeed caching
- Journal caching (Feature from Opencart Theme I use that does all the minify https://www.primanada.com/journal_cache/* and image caching https://www.primanada.com/image/cache/*)

3. Header prob => I'll have a look at that.

Thanks.

Jeff Kaufman

unread,
Mar 23, 2016, 10:15:48 AM3/23/16
to ngx-pagesp...@googlegroups.com
On Tue, Mar 22, 2016 at 1:48 AM, Hendra Christian
<hendrac...@gmail.com> wrote:
> Regarding UrlValuedAttribute, does it then cache both "src" and "data-src"?
> Or would it then ignore "src" and will only cache "data-src"?

It would handle both src and data-src.

(It's possible that at this point we should just handle data-src by
default. Even though that's not to spec, I'd be really surprised to
see a data-src on an img tag that wasn't actually pointing to an
image.)

>
> 1. The caching mechanism is introduced by the Opencart theme I use. From
> what I understand, it seems that on page load, every image is using the
> src="transparent-widthxheight.png" and data-src="the-real-path-to-image" for
> the purpose of speeding up the initial page load process and would replace
> src with data-src via javascript when page is loaded.
>
> When using developer tools (F12) in Chrome, there's no longer data-src
> attribute and src attribute is already replaced w/ the path in data-src,
> however using "View Source", it will show the original html which has src
> pointing to transparent.png and data-src to the real image.
>
> Now, knowing this, should I cache src or data-src? or is it possible to do
> both?

Caching both is fine, and that's what PageSpeed will do if you set
UrlValuedAttribute.

Jeff

nanang sujarwadi

unread,
May 14, 2016, 2:33:01 PM5/14/16
to ngx-pagespeed-discuss
My blog http://www.khazzanahumrohhaji.com/ very slow, i check https://gtmetrix.com/reports/www.khazzanahumrohhaji.com/Rv8tgzUc load time too long
I do not know how to fix it

Jeffrey Crowell

unread,
May 16, 2016, 10:39:08 AM5/16/16
to ngx-pagespeed-discuss
Hi Nanang,

Your site appears to be running on blogger, and isn't using ngx_pagespeed.  Is that not the case? You'll probably get better insight from a blogger-users mailing list, I'm not very familiar with blogger.

Jeff

On Sat, May 14, 2016 at 2:33 PM, nanang sujarwadi <alma22s...@gmail.com> wrote:
My blog http://www.khazzanahumrohhaji.com/ very slow, i check https://gtmetrix.com/reports/www.khazzanahumrohhaji.com/Rv8tgzUc load time too long
I do not know how to fix it

--
You received this message because you are subscribed to the Google Groups "ngx-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ngx-pagespeed-di...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages