Current time: 08-18-2017, 02:58 PM 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, 03:22 AM (This post was last modified: 07-25-2017 12:25 PM by diesel2.)
Post: #1
B rating for static content caching but no cache control headers sent?
On a Magento site, I get a B rating for caching static content. Mod_expires and Mod_headers are both enabled on the Apache server (2.4.7) running on Ubuntu 14.04. I am only using Magento's default .htaccess which has expires active on and a few directives for specific mime types.

However, the server doesn't seem to send any cache control headers. Here are the headers I see:

Quote:root@<username>:~# curl -IL https://www.example.com
HTTP/1.1 200 OK
Date: Mon, 24 Jul 2017 17:03:49 GMT
Server: Apache/2.4.7
Set-Cookie: frontend=n52dab340mkmb3elfkiapqn575; expires=Mon, 24-Jul-2017 18:03:49 GMT; Max-Age=3600; path=/; domain=www.example.com; HttpOnly
Set-Cookie: frontend_cid=ay9aVph9owV2omIm; expires=Mon, 24-Jul-2017 18:03:49 GMT; Max-Age=3600; path=/; domain=www.example.com; secure; httponly
X-Frame-Options: SAMEORIGIN
Fpc-Cache-Id: FPC_REQUEST_4d0f85354d3c27e66509301bd35eb682
Vary: Accept-Encoding
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
Content-Type: text/html; charset=UTF-8

I am puzzled to know how webpagetest grades my site B for static content caching even though the server is not sending cache control headers of any kind.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
B rating for static content caching but no cache control headers sent? - diesel2 - 07-25-2017 03:22 AM

Forum Jump:


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