Store has Magento 2.3.3 with Varnish 6, Redis 5 and Amasty Layered navigation enabled for filtering and pagination ajax calls. After setting up above configuration, navigation through category pages. Previous and next page clicks via Ajax calls works fine. Next day or after 24 hours or so, no response after clicking previous and next category pages. Issue disappears after clearing page cache.

Do I need to modify VCL to either exclude Ajax requests or cache ajax requests? While click next page or previous page I see XHR requests with &shopbyAjax=1 appended to paginated URL. Example https://www.example.com/salwar-kameez?p=8&shopbyAjax=1


1 Answer 1


In Redis environment - Get Method is always comes from cache when it generated so based on that below is the solution.

Please change Ajax method to POST or you can use timestamp parameter pass with GET method like &shopbyAjax=1&_=1580169600

  • Is there are workaround without touching the code? I mean through configuration files.
    – Zoya
    Commented Jan 28, 2020 at 8:11
  • No configuration files here. You need to check your ajax call and above solution you can implement it Commented Jan 28, 2020 at 8:33
  • It is Amasty layered navigation extension which is making these Ajax calls. Can you advise the file location and modification required?
    – Zoya
    Commented Jan 28, 2020 at 8:40
  • can you provide project link? so i am better way communicate with you Commented Jan 28, 2020 at 8:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.