I'm setting up Apache caching on CentOS using
mod_cache_disk with the configuration at the bottom of this post but the page is not cached. I included
CacheDetailHeader on to get some debug info.
When I hit the page, the HTTP response shows
X-Cache-Detail: "Expires header already expired; not cacheable" and the Expires header is set to some date in 1981, despite the date being correct.
Date: Mon, 19 Aug 2019 23:39:03 GMT Expires: Thu, 19 Nov 1981 08:52:00 GMT
The test is being done using Chrome Incognito browser on a public WordPress page.
The full configuration. CacheRoot exists and is writable for the Apache user.
FYI - The reason I'm using mod_cache with WP is that this project is based on the Bedrock framework which doesn't seem to work well with WP Super Cache and other plugins. They recommend using Memcached, Nginx or Varnish, none of which I have access to install.
WP_CACHEis set to
CacheMaxExpire 86400to config and the
X-Cache-Detailerror changed to
s-maxage or max-age zero and no Last-Modified or Etagand the
Cache-Controlheader is now
Cache-Control: private, proxy-revalidate, s-maxage=0
<IfModule mod_expires.c> ExpiresActive On ExpiresByType text/html "access 1 month" ... </IfModule>