- This topic has 1 reply, 2 voices, and was last updated 3 years, 10 months ago by .
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!
This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.
We also use cookies to store items in your cart as well as allowing your to login on the site.
You can adjust all of your cookie settings by navigating the tabs on the left hand side.
By continuing to use this site, you also agree to our Privacy Policy.
Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.
*Other cookies used for logging in and cart functions will only be used when you use those features and cannot be disabled.
If you disable these cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.
This website uses Google Analytics to collect anonymous information such as the number of visitors to the site, and the most popular pages.
Keeping this cookie enabled helps us to improve our website.
Please enable Strictly Necessary Cookies first so that we can save your preferences!
More information about our Cookie Policy