Current time: 12-09-2019, 09:42 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
B rating for static content caching but no cache control headers sent?
07-25-2017, 12:23 PM
Post: #3
RE: B rating for static content caching but no cache control headers sent?
(07-25-2017 09:43 AM)dfavor Wrote:  Ah... Slight gotcha with Ubuntu...

mod_expires.load being setup - first step.

mod_expires.conf - second step.

No default mod_expires.conf exists. You must add one to...

/etc/apache2/mods-available/mod_expires.conf

Then do an a2enmod expires again + this will create the correct mods-enabled links.

Then bounce Apache - service apache2 reload - then recheck.

Likely this will fix your setup.

Thank you, that was it! I did notice the expires.conf was missing, but it didn't occur to me that I could or should add the file and re-enable the mod to get it working.

Thanks a ton, again. I spent literally days figuring out why Sucuri was not caching our site and we finally discontinued the service yesterday. This gives me hope that we can get Sucuri to cache our site, after all, because their support said they couldn't cache until our server sent caching headers.

One question, though. The default value shows the following:
Code:
Cache-Control: max-age=1296000
Expires: Wed, 09 Aug 2017 02:13:12 GMT

This is about 15 days and is contrary to the mime type specific expires directives I put into expires.conf, which are much longer. Any idea where this max-age is coming from?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: B rating for static content caching but no cache control headers sent? - diesel2 - 07-25-2017 12:23 PM

Forum Jump:


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