• Resolved Nitin Rathod

    (@rnitinb)


    Hello,

    I want to exclude JS files from being cached.

    I have checked all settings but I couldn’t find anything related.

    So please help me soonest as possible with this.

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • JS, CSS, images and other sources are static sources and such sources are not cached by cache plugin. Static sources are cached by browser and it is important that static sources are cached by browser, so why do you want to exclude JS sources from being cached?

    Thread Starter Nitin Rathod

    (@rnitinb)

    Hi,

    thanks for the quick reply,

    Actually, we have to clear the cache from your plugin every morning to load the JS file properly which is used to load dates in the datepicker field on our product page.

    So I wanted to know if there is a way to do that so that the js file loads properly every time.

    I hope this helps you to understand better.

    Thanks.

    FYI: I am not plugin support.

    It sounds that this affected JS file is dynamically generated by PHP process. If so please check Setting “Cache PHP Resources” in cache tab. If it is enabled then disable it, do purge all and try again.

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    what you looking for is more like to exclude certain JS from being minified/combined

    for that purpose you can go to Page Optimization -> tune setting -> JS exclude and defer JS exclude

    best regards,

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to exclude JS files from being cached?’ is closed to new replies.