Grey Matter Forums
« Reloading? »

Welcome Guest. Please Login or Register.
May 22, 2013, 10:21pm



Greymatter: Free Personal Blogging Software

About Greymatter (including System Requirements)

Greymatter on FreshMeat

Download current version from:

News: Greymatter 1.8.2 is released! Read the announcement.

Got a minute? We want to know what's your preferred site navigation?

Please read the security announcement regarding author passwords.

Next Greymatter release will be 1.8.3


Grey Matter Forums :: Support :: Trouble Shooting :: Reloading?
   [Search This Thread] [Share Topic] [Print]
 AuthorTopic: Reloading? (Read 1,127 times)
m30
New Member
*
member is offline

[avatar]

[aim]
[homepage]

Joined: Aug 2006
Gender: Male
Posts: 11
Location: Kirksville, MO
Karma: 0
 Reloading?
« Thread Started on Aug 18, 2006, 1:03am »

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?
Link to Post - Back to Top  IP: Logged
coldstone
Global Moderator
*****
member is offline

[avatar]


[homepage]

Joined: Aug 2006
Posts: 816
Karma: 18
 Re: Reloading?
« Reply #1 on Aug 18, 2006, 11:36am »

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:
Code:
<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.
Link to Post - Back to Top  IP: Logged
m30
New Member
*
member is offline

[avatar]

[aim]
[homepage]

Joined: Aug 2006
Gender: Male
Posts: 11
Location: Kirksville, MO
Karma: 0
 Re: Reloading?
« Reply #2 on Aug 18, 2006, 11:50am »

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?
Link to Post - Back to Top  IP: Logged
coldstone
Global Moderator
*****
member is offline

[avatar]


[homepage]

Joined: Aug 2006
Posts: 816
Karma: 18
 Re: Reloading?
« Reply #3 on Aug 18, 2006, 12:09pm »

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.
Code:
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">

from page: http://www.i18nguy.com/markup/metatags.html

But 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.
Link to Post - Back to Top  IP: Logged
m30
New Member
*
member is offline

[avatar]

[aim]
[homepage]

Joined: Aug 2006
Gender: Male
Posts: 11
Location: Kirksville, MO
Karma: 0
 Re: Reloading?
« Reply #4 on Aug 18, 2006, 12:34pm »

That pair of tags you posted 2nd worked just fine.

Thanks!
Link to Post - Back to Top  IP: Logged
coldstone
Global Moderator
*****
member is offline

[avatar]


[homepage]

Joined: Aug 2006
Posts: 816
Karma: 18
 Re: Reloading?
« Reply #5 on Aug 19, 2006, 12:03am »

Yes! Its friday and I accomplished something. I can now goto bed, even though technically its Saturday now (well my my local time).
Link to Post - Back to Top  IP: Logged
   [Search This Thread] [Share Topic] [Print]

Click Here To Make This Board Ad-Free


This Board Hosted For FREE By ProBoards
Get Your Own Free Message Boards & Free Forums!
Terms of Service | Privacy Policy | Notice | FTC Disclosure | Report Abuse | Mobile