304 not modified header
-
Hello thanks for the great plugin! I am wondering about the feature “304 not modified” I haven’t been able to get this to work. I was successful with Supercache to get the 304 but not Cache Enabler.
My current header response:
HTTP/1.1 200 OK => Date => Fri, 19 May 2017 01:30:04 GMT Server => Apache x-cache-handler => wp Strict-Transport-Security => max-age=31536000 Access-Control-Allow-Origin => * X-Content-Type-Options => nosniff X-Xss-Protection => 1; mode=block X-Frame-Options => SAMEORIGIN Upgrade => h2,h2c Connection => Upgrade, close Content-Length => 40865 Content-Type => text/html; charset=UTF-8Before cache files are generated:
HTTP/1.1 200 OK => Date => Fri, 19 May 2017 01:48:30 GMT Server => Apache Expires => Thu, 19 Nov 1981 08:52:00 GMT Cache-Control => no-store, no-cache, must-revalidate Pragma => no-cache Link => ; rel="https://api.w.org/", ; rel=shortlink Set-Cookie => PHPSESSID=f9caf8936004d8391dc0e89f3a5d86da; path=/ Strict-Transport-Security => max-age=31536000 Access-Control-Allow-Origin => * X-Content-Type-Options => nosniff X-Xss-Protection => 1; mode=block X-Frame-Options => SAMEORIGIN Upgrade => h2,h2c Connection => Upgrade, close Content-Length => 40802 Content-Type => text/html; charset=UTF-8Releavent .htaccess entry:
$lt;FilesMatch "\.(gz|html)$"> Header set Cache-Control "max-age=86400, private, must-revalidate" </FilesMatch>Also I use Autoptimize and it sets some headers too but I don’t think it matters:
$lt;IfModule mod_expires.c> ExpiresActive On ExpiresByType text/css A30672000 ExpiresByType text/javascript A30672000 ExpiresByType application/javascript A30672000 </IfModule>Looking for some tips to get this working I just can’t get this figured out!
Thank you!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘304 not modified header’ is closed to new replies.