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.24-0ubuntu0.18.04.1 (Linux)
File Line Function
/showthread.php 802 errorHandler->error



Current time: 12-16-2019, 01:03 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cache static content = F
05-20-2012, 04:38 AM
Post: #1
Cache static content = F
Greetings everyone,

I am hoping to get some clarification on how to resolve failing at "Leverage browser caching of static assets."

I am an Apache setup with my hosting company. I tried so many different setups in my htaccess file which I received from discussions here and elsewhere however I just cannot get my images to show it's caching.

Some of the things I tried are (caching for 2 days)...
---------------
<filesMatch "\.(png|jpg|ico|gif|jpeg)$">
Header set Cache-Control "max-age=172800, public, must-revalidate"
</filesMatch>
--------------------------------------
<FilesMatch "\.(png|jpg|ico|gif|jpeg)$">
Header set Cache-Control "max-age=172800, public, must-revalidate"
Header unset Pragma
Header unset Last-Modified
Header unset ETag
FileETag None
</FilesMatch>
---------------------------------------------
ExpiresActive On
ExpiresDefault A0
<filesMatch "\.(png|jpg|ico|gif|jpeg)$">
Header set Cache-Control "max-age=172800, public, must-revalidate"
</filesMatch>
-------------------------------------------

I just don't know what I am doing wrong or missing. I would GREATLY appreciate any assistance or feedback.

Thanks!
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Cache static content = F - Arris - 05-20-2012 04:38 AM
RE: Cache static content = F - pmeenan - 05-21-2012, 11:21 PM
RE: Cache static content = F - Arris - 05-22-2012, 08:03 AM

Forum Jump:


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