Support » Plugin: W3 Total Cache » Exclude Specific JS File From Caching

  • Resolved Santhosh veer

    (@worldfacts)


    Is there Any Option to Exclude Specific JS File From Caching & Add No cache Header to that File

    JS URL – https://example.com/sw.js

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Marko Vasiljevic

    (@vmarko)

    Hello @worldfacts,
    Yes, there is a way to exclude specific JS files from minifying.
    In Performance>Minify, scroll down to advance sub-box. There you have the “Never minify the following JS files:” text-area in which you can enter specific JS file.
    Use relative paths. Omit: protocol, hostname, leading forward slash and query strings.
    I.E.
    wp-content/some directory/fdirectory/includes/front/js/some.js

    Sorry Not for Minify
    I want to exclude it from Brower Caching

    Plugin Support Marko Vasiljevic

    (@vmarko)

    Hello, @worldfacts,

    Unfortunately, there is no way to exclude a single JS file from Browser cache with W3 Total Cache options. As this is actually the first time someone suggested this, I’ll talk to the team about this to see if it’s worth implementing such an option in future releases.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Exclude Specific JS File From Caching’ is closed to new replies.