[Plugin: WP Super Cache] Feature Request – Option to remove headers
-
In the wp-cache.php file I had to comment out two lines:
//$gziprules .= "<IfModule mod_headers.c>\n Header set Vary \"Accept-Encoding, Cookie\"\n Header set Cache-Control 'max-age=300, must-revalidate'\n</IfModule>\n"; // $gziprules .= "<IfModule mod_expires.c>\n ExpiresActive On\n ExpiresByType text/html A300\n</IfModule>\n";I use Nginx as a frontend server, and Apache as the backend proxy to handle only PHP. Although Nginx offers the option to proxy_ignore_headers, it is limited to only a handful of options. This means Apache will sender headers like for instance Cache-Control that duplicate nginx.conf settings.
After commenting out those two lines above my problem was fixed.
Could you offer a check box option to enable or disable the headers you set in the .htaccess file, so Nginx users can turn them off if needed?
Also the must-revalidate header disables Nginx internal proxy_cache.
http://www.saltycrane.com/blog/2009/11/using-nginx-caching-proxy-wordpressapache/
The topic ‘[Plugin: WP Super Cache] Feature Request – Option to remove headers’ is closed to new replies.