- This topic has 1 reply, 2 voices, and was last updated 5 years ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › Caching issue with reset and AJAX loading
Tagged: ajax, browser caching, cache, Header set cache control
Hi,
I have been troubleshooting a caching issue I am having on our site using Search and Filter. I have added pages that would normally show in the filtered results, and doing a page refresh allows them to show, but when hitting the “reset” button, the page goes back to a prior version of the result.
I don’t have caching enabled through a plugin, and here is the header cache settings in .htaccess:
<filesMatch ".(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
Header set Cache-Control "no-cache, must-revalidate, max-age=0"
</filesMatch>
<filesMatch "\.(x?html?|php)$">
Header set Cache-Control "max-age=600, private, must-revalidate"
</filesMatch>
I am using a CDN, but even clearing that cache or putting the site into development mode does not fix the issue.
I can only clear the browser cache completely to fix the issue on my end, but how can I set this to update a user’s browser to load a fresh page, so they don’t run into the same issue?
https://www.yanjep.org/virtual-program-search/
Please let me know Thanks!