We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.

hoverbikes • 8 years ago

Thanks for the post! Your solution cleared it up for me, too. However, besides the obvious performance drawbacks of disabling caching, it had the unfortunate side-effect of triggering form resubmission warnings (when using back button, for example) on other parts of the site.

If these errors are being caused by people bookmarking a specific page, you can disable caching for that page only by doing it in the controller rather than the app config.

before_filter :prevent_caching
.
.
.
def prevent_caching
response.headers['Cache-Control'] = 'no-store, no-cache'
end

Alex Miller • 8 years ago

I'm glad it helped to clear it up. Thanks for sharing the page specific cache disabling solution!

Ricardo Otero • 3 years ago

This is still an issue in 2022! I had clients with this problem and couldn't replicate! It's really hard to debug errors like this. Thanks!