Quantcast
Channel: WordPress.org Forums » [Wordfence Security - Firewall, Malware Scan, and Login Security] Support
Viewing all articles
Browse latest Browse all 32752

Kevin on "[Plugin: Wordfence Security] Cache clearing"

$
0
0

Hello Tim

I have added the following lines to the .htaccess file

## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year "
ExpiresByType image/jpeg "access 1 year "
ExpiresByType image/gif "access 1 year "
ExpiresByType image/png "access 1 year "
ExpiresByType text/css "access 1 month"
ExpiresByType application/pdf "access 1 year "
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 2 days"
</IfModule>
## EXPIRES CACHING ##

this stores images, css, etc. on the user's browser's cache for the duration specified above per the type of file cached.

Thanks a bunch.
Kevin


Viewing all articles
Browse latest Browse all 32752

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>