I am finally getting around to looking at speed testing and optimization of my MODX websites. I know all about cached/uncached resources, elements, etc. But I know very little about caching when it comes to actual HTTP response headers. I'm looking at headers in Firebug, for a cached resource (set to cacheable in MODX), and seeing this (see attachment):
Cache-Control no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Connection Keep-Alive
Content-Type text/html; charset=UTF-8
Date Tue, 30 Apr 2013 19:10:26 GMT
Expires Thu, 19 Nov 1981 08:52:00 GMT
Keep-Alive timeout=5, max=100
Pragma no-cache
All of this no-cache and way-in-the-past "Expires" date seems rather bizarre for what is supposed to be a cached resource.
I tested a static html file, and a php file, from my same web server, and did not see such extreme no-cache directives. So is MODX putting these headers in? If so, why? And can I change it?
Can someone help me understand what is going on here? Because I have no idea.