• Resolved tripledm

    (@tripledm)


    I need to exclude a header that sets the visitors country iso code from cache but cannot get it figured out. Sample returned data:

    <html lang=”en-GB” prefix=”og: https://ogp.me/ns#&#8221; class=”no-js” data-country=”GB”> so this entire part I need to exclude from cache so that language and data-country updates.

    Any help appreciated, thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello,

    You can use Page Fragment Caching to exclude certain parts of the page from being cached. More about Page Fragment Cache on our FAQ page. This requires the Page cache method to be Basic or any other memory based caching solution. Also, you need to enable late initialization which may increase response times.
    You can also use Fragment caching, which is a feature in W3 Total Cache available after the upgrade.

    Thread Starter tripledm

    (@tripledm)

    Thank you Marko I am going to do some reading, huge thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘exclude parts from cache for GEO country’ is closed to new replies.