• Resolved mihodono

    (@mihodono)


    Hello, I would like to know if there is any way we could exclude certain codes of JavaScript from being cached?

    Currently, the website I’m working on has a plugin that is rendering certain codes of JavaScript in the header that essentially takes the user’s IP address and tells which country the current user is located. However, it seems that W3 Total is caching the JavaScript code resulting to wrong countries being shown. Is there any way we could exclude that code from being cached?

    Thank you very much.

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

    (@vmarko)

    Hello @mihodono

    Thank you for reaching out and I am happy to assist you with this.

    Can you please share which plugin you are using for this and if this file is loading on all pages, and please let me know what are the Settings enabled in the W3TC General settings.

    Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘Exclude JS code from cache’ is closed to new replies.