• Resolved helloelectro1

    (@helloelectro1)


    Can anyone explain to me what this piece of code is? I am guessing it is WordFence given the comment but can’t find anything when searching for info. Any help would be appreciated! When i try to apply some browser cache directives, i get 500 error. This appears to be only site of many I use WF that has this. Thank you!

    # WF Pairing Cache
    <IfModule mod_deflate.c>
        AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text$
        <IfModule mod_headers.c>
            Header append Vary User-Agent env=!dont-vary
        </IfModule>
        <IfModule mod_mime.c>
            AddOutputFilter DEFLATE js css htm html xml
        </IfModule>
    </IfModule>
    <IfModule mod_mime.c>
        AddType text/html .html_gzip
        AddEncoding gzip .html_gzip
        AddType text/xml .xml_gzip
        AddEncoding gzip .xml_gzip
    </IfModule>
    <IfModule mod_setenvif.c>
        SetEnvIfNoCase Request_URI \.html_gzip$ no-gzip
        SetEnvIfNoCase Request_URI \.xml_gzip$ no-gzip
    </IfModule>
    <IfModule mod_headers.c>
        Header set Vary "Accept-Encoding, Cookie"
    </IfModule>
    
Viewing 4 replies - 1 through 4 (of 4 total)
  • That’s just your gzip section in .htaccess, far as I know has nothing to do with Wordfence. Takes 10 seconds to google it up. Not sure why someone would place that initial comment on it but I’ll be curious to know. Commenting in .htaccess is easy, I wish it was done more clearly in many cases. MTN

    Hi helloelectro1,
    This code snippet you shared was part of the Wordfence Falcon cache code, which has been removed from Wordfence since version 6.2.8, the original comment line was:
    #WFCACHECODE - Do not remove this line. Disable Web Caching in Wordfence to remove this data.

    If you are running the latest version of Wordfence by now, then you can remove this code from “.htaccess” file, it must be something wrong happened during the update resulted in this issue.

    Thanks.

    Hey Wfalla, please delete my post since I got it wrong. MTN

    Sorry @mountainguy2 we don’t have access to delete or edit replies/threads on the forums, only WordPress forums moderators can do that under certain circumstances.

    Your help is always appreciated!
    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WF Pairing Cache in htaccess’ is closed to new replies.