The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 802 - File: showthread.php PHP 7.2.19-0ubuntu0.18.04.2 (Linux)
File Line Function
/showthread.php 802 errorHandler->error



Current time: 09-20-2019, 08:43 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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)$">
Header set Cache-Control "public"
Header set Expires "Thu, 15 Nov 2010 20:00:00 GMT"
Header unset Last-Modified
</FilesMatch>
#2 hours
<FilesMatch "\.(html|htm|xml|txt|xsl)$">
Header set Cache-Control "max-age=7200, must-revalidate"
</FilesMatch>
<FilesMatch "\.(js|css)$">
SetOutputFilter DEFLATE
Header set Expires "Thu, 15 Nov 2010 20:00:00 GMT"
</FilesMatch>

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
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
negative scoring for wrong cache headers - sajal - 05-16-2011 05:07 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)