Hello there,
I've configured pagespeed using this configuration ...
# Enable Filter
ModPagespeedEnableFilters remove_quotes
ModPagespeedEnableFilters insert_dns_prefetch
ModPagespeedEnableFilters rewrite_images,sprite_images,resize_mobile_images
ModPagespeedEnableFilters remove_comments,collapse_whitespace
ModPagespeedEnableFilters lazyload_images
ModPagespeedEnableFilters insert_dns_prefetch
ModPagespeedEnableFilters move_css_to_head,move_css_above_scripts
ModPagespeedEnableFilters make_google_analytics_async
ModPagespeedEnableFilters canonicalize_javascript_libraries
ModPagespeedEnableFilters elide_attributes
ModPagespeedEnableFilters rewrite_style_attributes_with_url
ModPagespeedEnableFilters trim_urls
ModPagespeedEnableFilters recompress_images
ModPagespeedEnableFilters recompress_jpeg,recompress_png
ModPagespeedEnableFilters strip_image_meta_data
ModPagespeedJpegRecompressionQuality -1
ModPagespeedImageRecompressionQuality -1
And the cache flush every 3600000 ms (1 hour). Is it possible to make the cached flush by the file types ? (eg. css flush every 10 minutes, images every 30 minutes, js every 1 hour). Any hints? I need to make it individually because of my development team changes the css and pagepseed still cache it :(
--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-di...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Hello J,
Thanks for your response, I thought the TTL only valid on non-rewritten files, for example like this :
[root@banehallow ~]# HEAD http://www.like.me/scripts/newlintasme_script/facebox.js
200 OK
Cache-Control: public, max-age=600
But, on the rewritten files, the cache is not valid ...
HEAD http://www.like.me/scripts/newlintasme_script/facebox.js,Mjm.JXcwJDTwcQ.js
200 OK
Cache-Control: max-age=0, no-cache
Is it normal? Or is there any hints to make the rewritten files follows apache TTL?
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
"Klaatu barada nikto" (754) 444-6288
--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.
Oh sorry, yes like.me is not my real domain, try lintas.me :) The modpagespeed is behind nginx reverseproxy....
Any hints J ?
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsubscri...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
"Klaatu barada nikto" (754) 444-6288
--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsubscri...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Hmmm... So next 10 minutes, the mod_pagespeed will rewrite new hash?
If I changes the content of the js, is the mod_pagespeed will point into new modified js files and rewrite it
or still old rewritten js files?
If I changes the content of the js, is the mod_pagespeed will point into new modified js files and rewrite it
Yes
So, should I enable ModPagespeedLoadFromFile or ModPagespeedMatchFromFile belongs to this issue?
--
Okay J, thanks for your response. So, talk about ModPagespeedLoadFromFile, should I write new topic or just continue this one? I have some question related to LoadFromFile & MatchFromFile
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.
Well J,
I've enable ModPagespeedLoadFromFile, and the directive are like this
ModPagespeedLoadFromFile "http://www.thedomainabove.me/assets/" "/data/html/assets"
And if the rewrite rule like this
http://www.thedomainabove.me/assets,_foundation,_js,_jquery.offcanvas.js,Mjm.3_SXUjNO9U.js+assets,_foundation,_js,_jquery.placeholder.js,Mjm.oUKfTiV0Pi.js+scripts,_newlintasme_script,_facebox.js,Mjm.JXcwJDTwcQ.js+scripts,_newlintasme_script,_loader-v4.js,Mjm.YWCVCbeHTw.js.pagespeed.jc.LtvLajeo7I.js
Is it still direct to js/css file if I modified the original source? I mean, if I modified the source, the pagespeed rewrite's hash still the same or changed?
And if I use ModPagespeedLoadFromFile, should I enable the cache control? I don't understand with your statement "the rewritten files will be served with 1-year TTL", 1-year TTL? Could you explain it to me more clearly, J ?
Thank you :)
Pada Jumat, 08 Maret 2013 20:36:09 UTC+7, jmarantz menulis:
You can continue in this thread.
On Thu, Mar 7, 2013 at 10:17 PM, antituhan <dewan...@xtremenitro.org> wrote:
Okay J, thanks for your response. So, talk about ModPagespeedLoadFromFile, should I write new topic or just continue this one? I have some question related to LoadFromFile & MatchFromFile
Pada Jumat, 08 Maret 2013 0:34:15 UTC+7, jmarantz menulis:
I always recommend using ModPagespeedLoadFromFile* when you can. Using that means that your files will be updated immediately. Even if you set a 10 minute TTL, your JS file updates will propagate to your HTML references immediately.However, I'm not sure what the "issue" you think you have is. In either case, the rewritten files will be served with 1-year TTL. Without LoadFromFile, the origin JS will be checked for changes every 10 minutes. With LoadFromFile, it will be checked on every access.I've probably done a better explanation on the cache extension web page: please read this: https://developers.google.com/speed/docs/mod_pagespeed/filter-cache-extend
On Thu, Mar 7, 2013 at 12:16 PM, antituhan <dewan...@xtremenitro.org> wrote:
So, should I enable ModPagespeedLoadFromFile or ModPagespeedMatchFromFile belongs to this issue?
Pada Kamis, 07 Maret 2013 23:47:35 UTC+7, matterbury menulis:
--To clarify (correct me if I'm wrong Josh):If I changes the content of the js, is the mod_pagespeed will point into new modified js files and rewrite it
YesYes, after the 10 minutes has expired (*). If you tell mod_pagespeed the JS is valid for 10 minutes it will believe you, just like a browser would.(*) Unless you're fetching directly from file using ModPagespeedLoadFromFile in which case I think we stat the file every time so see any changes immediately.
m.
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsubscri...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Ah, ic. IMHO, my apache didn't recognize the TTL like this
<FilesMatch "\.(js|css)">
Header unset Etag
Header set Cache-Control "public, max-age=600"
</FilesMatch>
Because I'm using HTTP/1.0, not HTTP/1.1. Could I use mod_expires on apache to control the expires of file, like this one http://httpd.apache.org/docs/2.2/mod/mod_expires.html on pagespeed directive?
Hmmm ic, how about inline javascript? I've try to edit the js on root directory *is not defined at LoadFromFile directive*, here is my directive :
ModPagespeedLoadFromFile "http://www.lintas.me/assets/" "/data/html/assets"
ModPagespeedLoadFromFile "http://www.lintas.me/scripts/" "/data/html/scripts"
ModPagespeedLoadFromFile "http://www.lintas.me/style/" "/data/html/style"
I've try to edit the inline js file on root, (eg. auth.php) but the js didn't update and still use the old rewritten data.
Should I enable this filter below ?
ModPagespeedLoadFromFile "http://www.lintas.me/" "/data/html"
To avoid inline js/css and update regularly based on source file.
Hi Josh,
Thanks for explaination about using LoadFromFile directive. Now, I've new question :D I send HEAD command to rewritten URL and clean URL.
[dominique@dominiQue ~]$ HEAD http://cdn.lintas.me/images/xspriteme1.png.pagespeed.ic.hUSzds-VD3.png
200 OK
Cache-Control: max-age=31536000
Connection: close
Date: Sun, 17 Mar 2013 13:29:00 GMT
Pragma: public
Accept-Ranges: bytes
ETag: W/"0"
Server: lmws/1.0.12
Content-Length: 104261
Content-Type: image/png
Expires: Mon, 17 Mar 2014 12:31:10 GMT
Last-Modified: Sun, 17 Mar 2013 12:31:10 GMT
Client-Date: Sun, 17 Mar 2013 13:26:58 GMT
Client-Peer: 117.102.117.90:80
Client-Response-Num: 1
Master: Sparda
[dominique@dominiQue ~]$ HEAD http://i.brta.in/images/spriteme1.png
200 OK
Cache-Control: max-age=604800
Cache-Control: public
Connection: close
Date: Sun, 17 Mar 2013 13:32:23 GMT
Pragma: public
Accept-Ranges: bytes
Server: lmws/1.0.12
Content-Length: 120465
Content-Type: image/png
Expires: Sun, 24 Mar 2013 13:32:23 GMT
Last-Modified: Thu, 14 Feb 2013 03:06:13 GMT
Client-Date: Sun, 17 Mar 2013 13:30:22 GMT
Client-Peer: 117.102.117.90:80
Client-Response-Num: 1
The un-compressed (un-modified files by pagespeed) are correct by using 1 week TTL. Btw, why the rewritten file by pagespeed didn't follow my apache rules? Should I modify the TTL on rewritten files by pagespeed?
--
Ah damn :)) I've miss perception from the TTL. A TTL of rewritten files are set by default, but the TTL of original files. That's why I created this thread *blushing
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.