I'm using (and improving) the ratings extension for use in my radiant 0.8.1
app.  It works well except for a weird caching issue that I haven't been
able to solve yet.

When a user rates a page, the radiant cache is cleared, so that when they
are redirected to the page, they get a fresh version of it that includes the
new rating average.  On safari, this works as expected.  On firefox, I
continue to get the old version of the page.  I have to manually refresh the
page to force it to update the rating.

I've investigated it a bit, and discovered that the cached entity and meta
files are indeed being cleared at the right time.  My server logs show that
when I rate a page using safari, it redirects to the page, and my server
logs show a hit to SiteController#show_page, indicating that a fresh version
of the page is being generated.  When I do this on firefox, it redirects,
but there is not a hit to SiteController#show_page.  I just see a cached
version of the page.

So, it appears to me that the cache is being properly cleared on the server,
but Firefox is continuing to display a version of the page that is has
cached on the browser.  My best guess is that there is some issue with the
HTTP cache headers that causes Firefox to continue to display it's cached
page.  I haven't dealt with HTTP cache headers before, so I'm not really
sure how to go about troubleshooting this.

Any suggestions?

Thanks,
Myron
_______________________________________________
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to