negative scoring for wrong cache headers
|
05-16-2011, 05:07 PM
Post: #1
|
|||
|
|||
negative scoring for wrong cache headers
Ive come across a site whose doing this in .htaccess
Code: <FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|swf|mp3|mp4)$"> Why would anyone do that is beyond me. but... webpagetest.org gives this site an A in caching... In the same time the repeat view does a if-modified-since request for this. Would have been easier to spot this mixup if WPT gave negative scoring for such things... small cache durations already result in a warning... negative duration should be an err -Sajal cdnplanet.com: We help you select the right CDN |
|||
05-17-2011, 02:12 AM
Post: #2
|
|||
|
|||
RE: negative scoring for wrong cache headers
Thanks. The code right now favors a cache-control header and if one is present it will calculate a duration based on the time set. For expires headers it just checks for the presence and doesn't actually check the date (been a TODO for a while). If it's not too hard to parse the dates in c++ I'll see if I can get it added quickly, otherwise I'll make sure it's correct as we move individual rules to use Page Speed's logic.
|
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)