Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author WFMattR

    (@wfmattr)

    Falcon does not currently include browser caching. You can use custom lines in .htaccess for this, if you like. Currently, Falcon and W3TC should not be used at the same time, as there are many possibilities of conflict when multiple caches are enabled.

    Browser caching settings may be added in a future version of Wordfence — I have added your input to an open feature request we have in our internal system. Thanks for the input!

    -Matt R
    FB671

    I was hoping this was a feature too!

    You can add this code to your htaccess file and change the expiry times to suit:

    # START EXPIRES CACHING #
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/jpg “access plus 3 months”
    ExpiresByType image/jpeg “access plus 3 months”
    ExpiresByType image/gif “access plus 3 months”
    ExpiresByType image/png “access plus 3 months”
    ExpiresByType application/x-font-woff “access plus 3 months”
    ExpiresByType text/css “access plus 1 month”
    ExpiresByType application/pdf “access plus 1 month”
    ExpiresByType application/javascript “access 1 month”
    ExpiresByType text/x-javascript “access plus 1 month”
    ExpiresByType application/x-shockwave-flash “access plus 1 month”
    ExpiresByType image/x-icon “access plus 3 months”
    ExpiresDefault “access plus 2 days”
    </IfModule>
    # END EXPIRES CACHING #

    Thank you, what do the expiry times mean? Why would I change them?

    Hmm, just tried adding the code as it is but ended up with an internal server error so had to remove it. Any ideas why that would be?

    Sorry I’m not sure why you would get an error, this code works fine for me (when placed at the bottom of the htaccess file outside of the default wordpress section). Maybe google the code to see if anyone else has had the same issue.

    You might want to change the expiry times based on the nature of your website. For instance if the images won’t be changing very often you could increase the expiry time on image files to 6 months, a year etc.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Does WordFence Falcon leverage browser caching?’ is closed to new replies.