• Resolved VL

    (@ravolar)


    Hello, in case of cashing woocommerce product filters stop working. How to exclude from cashing JS file like /js/frontend/script.min.js and JS codes like filter-js-extra and filter-js-before. Thanks in advance!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor iSaumya

    (@isaumya)

    Hi @ravolar,
    Are you sure that it’s caching? I think it might be something else like delaying the JS execution or defering JS code. Cause caching will never cause any issues with JS files. JS files are supposed to be cached. You should definately dig more into the issue to see exactly what’s causing the issue. I really don’t think it’s caching – it might be some other optimizations added to JS like delaying or defering.

    Also, for the static files the Cache-Control header is added at the server config level like .htaccess file. So, maybe you can write some rules for those JS file to send no-cache, no-store, must-revalidate, max-age=0 as the value of Cache-Control header.

    Thread Starter VL

    (@ravolar)

    The problem is filters stop working when I activate Super Page Cache for Cloudflare. You plugin is reaaly works perfect, but not fit to my site right now and I am waiting for solution how to fix the problem with filters. Could you help?

    Plugin Contributor iSaumya

    (@isaumya)

    Hi @ravolar,
    When you are talking about filters, are you talking about WordPress filter?

    Without looking at the problem, hard to give solution. Please share your site URL and a way to reproduce the problem – so that I can check it here.

    Thread Starter VL

    (@ravolar)

    I activated your plugin. There are product filters on left side https://autosound.ee/tootekategooria/kolarid/as/size-165mm/

    Filters do not work after caching any more. Not changing URL as should be.

    • This reply was modified 1 year, 2 months ago by VL.
    Plugin Contributor iSaumya

    (@isaumya)

    Hi @ravolar,
    Just tested your webpage after ensuring the page and all the sattic assets are being served from the CDN cache. Everything is working perfectly. Screenshot: https://i.imgur.com/mS0t7Wz.jpeg

    Not seeing any issues.

    Thread Starter VL

    (@ravolar)

    Maybe I deleted cache before You tried. I’ve tested today in different browsers and it doesn’t work. Could You check again please. ?Thanks in advance!

    Plugin Contributor iSaumya

    (@isaumya)

    Hi @ravolar,
    Just tested. Everything is being served from Cloudflare CDN (you can see the HIT) in the screenshot. Still working great.

    Screenshots:
    https://i.imgur.com/qlV1lC8.jpeg
    https://i.imgur.com/KbTVAl5.jpeg

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Exclude Woocommerce filter JS file’ is closed to new replies.