• Resolved horsee

    (@horsee)


    Hello, can you advice how can I make the exception to avoid caching for defined elements on the page.

    I have a banner on the page that shall be displayed based on the geolocation data, but currently, it is not working as expected, as full-page caching is enabled. I don’t want to put a whole page as the expectation, as this is the home page.

Viewing 1 replies (of 1 total)
  • Plugin Contributor iSaumya

    (@isaumya)

    Hi,
    You cannot exclude certain items of the page from the cache. Either the page gets cached or is bypassed from cache. There is no middle ground.

    If you want to show some dynamic item in your page but what the page to be served from cache then you have to show the dynamic item via javascript. So, after the page load, the javascript will make some API call to fetch the dynamic data and show to the users.

Viewing 1 replies (of 1 total)
  • The topic ‘Avoid caching selected elements on the page’ is closed to new replies.