ChrisScottUK
New Pleskian
Hi there,
I use WP Fastest Cache Plugin, but the expires headers in .htaccess aren't being respected.
I'm using Plesk Onyx with Nginx reverse proxy to apache. I thought using it as a reverse proxy would repsect the .htaccess rules (I know that Nginx on it's own doens't use .htaccess)
Any ideas why this doesn't work?
I use WP Fastest Cache Plugin, but the expires headers in .htaccess aren't being respected.
I'm using Plesk Onyx with Nginx reverse proxy to apache. I thought using it as a reverse proxy would repsect the .htaccess rules (I know that Nginx on it's own doens't use .htaccess)
Any ideas why this doesn't work?
Code:
# BEGIN LBCWpFastestCache
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf|x-html|css|xml|js|woff|woff2|ttf|svg|eot)(\.gz)?$">
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault A0
ExpiresByType image/gif A2592000
ExpiresByType image/png A2592000
ExpiresByType image/jpg A2592000
ExpiresByType image/jpeg A2592000
ExpiresByType image/ico A2592000
ExpiresByType image/svg+xml A2592000
ExpiresByType text/css A2592000
ExpiresByType text/javascript A2592000
ExpiresByType application/javascript A2592000
ExpiresByType application/x-javascript A2592000
</IfModule>
<IfModule mod_headers.c>
Header set Expires "max-age=2592000, public"
Header unset ETag
Header set Connection keep-alive
FileETag None
</IfModule>
</FilesMatch>
# END LBCWpFastestCache