• Resolved Omran AlAssad

    (@omranalassad)


    Prevent the wp-blog-header.php file from cache

    I have a php code to verify the visitor’s address and then point it to their country page
    But now with using the plugin it is not working due to skipped cache
    I need to prevent this file from being cache
    wp-blog-header.php
    Any help would be much appreciated

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    how exactly does it verify and “point it” ? like GeoIP thing ?

    Best regards,

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    I’m going to mark this topic “Resolved”, due to lack of activity.

    If you still need help, please feel free to re-open it.

    When re-open it, please also change the topic status to “not solved”

    Best regards,

    Thread Starter Omran AlAssad

    (@omranalassad)

    not by php code
    custom
    Example : $country_code = $_SERVER ["HTTP_CF_IPCOUNTRY"];

    Plugin Support qtwrk

    (@qtwrk)

    if you are using CloudFlare header to check countries, then everything is easier

    add this at TOP of your .htaccess

    
    <IfModule LiteSpeed>
    RewriteEngine On
    RewriteRule .* - [E=Cache-Control:vary=%{HTTP:CF-IPCountry}]
    </IfModule>
    

    and then do a purge all

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Prevent the wp-blog-header.php file from cache’ is closed to new replies.