• Resolved nico39

    (@nico39)


    Hi,

    There is no way to exclude a single JS file from Browser cache with W3 Total Cache options?

    Because with the plugin WPDiscuz, when you connect with facebook and you are sent back to your website, you have to refresh the page so that the user sees that he is connected with facebook.

    The developers of WP Discuz recommend excluding these two JS files from the caching plugin for it to work.

    They said:
    If you have some caching plugin please exclude the wpDiscuz js files from the plugin settings, it should work fine:

    /wp-content/plugins/wpdiscuz/assets/wpdiscuz-social.js
    /wp-content/plugins/wpdiscuz/assets/wpdiscuz.js

    Thanks Nico

    • This topic was modified 3 years ago by nico39.

    The page I need help with: [log in to see the link]

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

    (@vmarko)

    Hello @nico39

    Thank you for reaching out and I am happy to assist you with this.
    You cannot exclude a single file from the Browser Caching, however, it would be great if we could determine if the BC is the problem.
    Can you please disable Browser Cache in Performance>General settings and see if the problem persists? If the issue is gone, re-enable Browser Cache, and go to performance>Browser Cache page and disable the settings in General box one by one with purging the cache after each and see which one might be causing this.
    If you have enabled minify, you can exclude specific files from being minified in Performance>Minify>Advanced>”Never minify following JS files” and add:

    /wp-content/plugins/wpdiscuz/assets/wpdiscuz-social.js
    /wp-content/plugins/wpdiscuz/assets/wpdiscuz.js

    I hope this helps!

    Thanks!

    Thread Starter nico39

    (@nico39)

    Thanks for your return,

    So I tried all the points requested:

    1. disable Browser Cache in Performance>General settings:
    It works

    2. re-enable Browser Cache, and go to performance>Browser Cache page and disable the settings in General box:
    With these 2 options disabled
    it works:

    – Set header expiration
    – Set header caching control

    3. I reactivated the 2 previous options and exclude specific files from being minified in Performance>Minify>Advanced>”Never minify following JS files” and add:

    /wp-content/plugins/wpdiscuz/assets/wpdiscuz-social.js
    /wp-content/plugins/wpdiscuz/assets/wpdiscuz.js

    It does not work

    Here is the test result

    Nico

    • This reply was modified 3 years ago by nico39.
    • This reply was modified 3 years ago by nico39.
    Thread Starter nico39

    (@nico39)

    Thanks for your return,

    So I tried all the points requested:

    1. disable Browser Cache in Performance>General settings:
    It works

    2. re-enable Browser Cache, and go to performance>Browser Cache page and disable the settings in General box:
    With these 2 options disabled
    it works:

    – Set header expiration
    – Set header caching control

    3. I reactivated the 2 previous options and exclude specific files from being minified in Performance>Minify>Advanced>”Never minify following JS files” and add:

    /wp-content/plugins/wpdiscuz/assets/wpdiscuz-social.js
    /wp-content/plugins/wpdiscuz/assets/wpdiscuz.js

    It does not work

    Here is the test result

    Nico

    Thread Starter nico39

    (@nico39)

    Sorry for the double post, there was a problem when I posted

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @nico39

    Thank you for the information.
    So it’s the problem with the expires header and cache-control.
    To confirm which one needs to be disabled, leave both options enabled in the General box, scroll down to HTML&XML sub-box and disable expires header and cache-control, save all settings, purge the cache and see if this needs to remain disabled.
    If the issue persists, re-enable those options in HTML&XML section, scroll down to CSS&JS and disable expires header and cache-control, save all settings, purge the cache and see if this helps!
    Thanks!

    Thread Starter nico39

    (@nico39)

    This work :

    scroll down to HTML&XML sub-box and disable expires header and cache-control, save all settings, purge the cache and see if this needs to remain disabled.

    I am far from an expert, but can you tell me what are the repercussions of disabling these two options?

    In any case, thank you for your time and your advice which has been of great help to me. As a licensed user of W3 Total Cache, I will not fail to speak well of your plugin, which by the way, after testing several others of the competitors, was by far the most efficient in terms of speed but also quality minification without encountering any bugs.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @nico39

    Thank you for the information.
    These two options are responsible for the Browser caching the pages in the user’s browser cache.
    The default is 3600s which is one hour, so you can either reduce this time frame or disable the settings due to the website behavior.
    In any case, this will impact the performance and speed of your website when disabled.

    We would really appreciate it if you could take a minute and post a review?here. This will help us to continue offering a top-notch product to users.
    Thanks!

    Thread Starter nico39

    (@nico39)

    Thanks for all Marko, my review is online

    Have a good day!

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