m30
New Member
Posts: 11
|
Post by m30 on Aug 18, 2006 1:03:46 GMT -5
I had a commenter on my site complain that when they posted a comment, and hit "post", they were taken back to the individual entry page, but their comment did not appear until they mannually refreshed the page.
I haven't confirmed this as a problem, but, off the top of your heads, what might be causing this?
|
|
|
Post by coldstone on Aug 18, 2006 11:36:52 GMT -5
I have run into this problem, which I believe may be related to using Firefox (its being 'too' smart about page cacheing).
I setup a little test and was able to replicate the issue and I found adding some meta tags to the header will help:
<meta http-equiv="expires" content="31 Dec 2000">
I also found some other meta tags regarding cacheing. I don't have them with me now, but can post later if desired.
Note that I havne't tested this on anything but a iBook running Firefox. I also integreted the new tags into the default templates.
|
|
m30
New Member
Posts: 11
|
Post by m30 on Aug 18, 2006 11:50:40 GMT -5
This is consistant with my compaint (commenter uses Firefox); what does that meta tag actually do? Force the page to reload every time its viewed?
|
|
|
Post by coldstone on Aug 18, 2006 12:09:37 GMT -5
Basically, yeah. Its saying that the page 'expired' on dec 2000 and should be reloaded instead of cached. It would be nicer to be able to tell the browser in the request to refresh (in the http header content) but we could only do that if we made the page a cgi script, vs static html. The other tags tell the browser not to cache the page. Since this problem should only be because of comments/karma, we could probably fine tune which pages it appears on. <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"> <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"> from page: www.i18nguy.com/markup/metatags.htmlBut thats doable through the templates. I can see where people might not want the main page updated every time, but even that page has dynamic stuff like how many comments are on a post, etc.
|
|
m30
New Member
Posts: 11
|
Post by m30 on Aug 18, 2006 12:34:21 GMT -5
That pair of tags you posted 2nd worked just fine.
Thanks!
|
|
|
Post by coldstone on Aug 19, 2006 0:03:09 GMT -5
Yes! Its friday and I accomplished something. I can now goto bed, even though technically its Saturday now (well my my local time).
|
|