Antville Project

cached pages

if this is already fixed in the current cvs just ignore this/delete this/bitch at me: i often get outdated antville pages; most of the time i have to hit reload, sometimes i don't notice and edit a story with outdated text in the edit form and, for example, put an old typo back in when fixing a second one. i put this line

<meta http-equiv="pragma" content="no-cache">
in the main skins of my local project logs and my antville.org site, which seems to prevent my browsers from caching anything nicely, but doesn't help convince the proxy i have at the office to reload every page.

question 1: what else can i do so don't have to reload my own pages? question 2: once we found something that works, wouldn't it be nice to have it in every antville main skin by default, so no one has to manually reload any page any more? :-)

comment    

 
hns, September 18, 2002 at 10:45:50 AM CEST

Re: cached pages

check your browser setup.

link  

 
nex, September 18, 2002 at 11:50:32 AM CEST

Re: Re: cached pages

i told my browser to disable caching of html documents alltogether, but it doesn't help. it must be my proxy's fault. i hardly had any trouble at home (where i don't use a proxy), just here at the office. when i reload a page, the http request is slightly different and the proxy fetches a new version of the page, but i can't tell my browser to send that kind of request upon klicking a link (or can i? how?).

link  


... comment
 
docbuelle, September 18, 2002 at 12:25:17 PM CEST

Re: cached pages

try this: meta http-equiv="pragma" content="no-cache" / meta http-equiv="expires" content="7200" / (within the "<" and ">", of course)

where "7200" will force your browser to refresh the site after 2 hours (60 sec x 60 min x 2 = 7200 sec = 2 hours); you can easily change this to 4 hours , 1 hour and so on

link  

 
nex, September 18, 2002 at 12:48:35 PM CEST

Re: Re: cached pages

well, in my case, the pages expire rather instantaneously, but even putting this line in and setting the value to 1 didn't help at all. i'll go talk to the admin of the proxy.

one server-side measure that would surely work would be to append some kind of session ID to every URL, as seen on orf.at. the proxy could/would differentiate between different versions of the same document and act accordingly. but don't do these IDs make the URLs look ugly?

link  

 
docbuelle, September 18, 2002 at 2:08:29 PM CEST

nex(t) try, please! ;-)

you did get me wrong. as I can see in your code, you entered this:

meta http-equiv="pragma" content="no-cache" / meta http-equiv="expires" content="1" /

and this will not work; if you give it a try with "3600" instead of "1", it should work and the page will refresh automatically one hour after your last visit...

you can set a date, too, if you prefer this (see Self-HTML or here)

And: some of these things will not work for Netscape, others not for IE !

What I did is: I wrote an AppleScript, that cleans ALL my browser-caches within two seconds - I run it everytime I log out of the internet, so there is nothing left to reload and the browsers have to load the latest version of the page from wherever it is. This is for Macintosh only; don't ask me how to do this for Windows...

link  

 
nex, September 18, 2002 at 3:52:50 PM CEST

Re: Re: cached pages

i got you wrong? maybe you think so because you absolutely failed to comprehend anything you read today. i'll try to explain:

  1. expires is not for automatic "refreshing", it states for how long a cached document will be valid and may be pulled from a cache. this is also what the reference you gave is saying.
  2. i did mean one second, because a dynamic page that has to be generated from scratch each time it's loaded isn't valid in any cache (so i actually should've put a 0 in there, just wasn't sure if this is a valid value -- thanks for the reference, which carifies that). i already explained that above.
  3. consequently, setting a date would be completely out of the question.
  4. by browser, which is neither IE nor Netscape, but implements the standards quite nicely, doesn't cache anything. i already stated this above.
the issue is: the caching proxy should also pay attention to those tags, but mine doesn't. but as i can reload pages okay, there could be a way to load them correctly the first time, by tricking the faulty proxy somehow.

link  

 
hns, September 18, 2002 at 4:00:40 PM CEST

nex

What about being a bit more kind to people who are trying to help you? And while we're at it, also to people you are, um, trying to help?

link  

 
docbuelle, September 18, 2002 at 4:16:43 PM CEST

? :-(

@ nex: "... you absolutely failed to comprehend anything you read today ..." ? Well, you are so right, my friend. So sorry, I bothered you. Fact is: I was trying to help, like other people helped me. According to my humble English/German-capacities "you did get me wrong" means "Du hast mich mißverstanden" and is nothing more than eine Vermutung. I could not know, how smart you are; so, forgive me.

@ hns: thank you for your remark

link  

 
nex, September 18, 2002 at 5:12:27 PM CEST

Re: Re: cached pages

hns, i'm sorry about the entry there (really!), i updated it.

docbuelle: your help is appreciated (you had pretty good ideas more than once), but your attempt to do it again above looked to me as if you're treating me like an idiot ("let me have a look at your code... oh! you did it all wrong! try again!", where i had actually corrected it so it made sense), and as it didn't help me, i was frustrated. maybe it's just me and my inability to interpret emoticons and self-righteous sarcasm :-)

ascertainment, conclusion, determination, statement: "it is."

assumption, conjecture, guess, guesswork, presumtion, speculation, supposition, surmise: "i think/guess/presume that it is."

mkay?

link  


... comment


The Antville Server Fund has been a great success. Thanks to everybody who contributed!
online for 8550 Days
last updated: 1/4/11, 10:22 AM
status
Youre not logged in ... Login
menu
November 2024
SunMonTueWedThuFriSat
12
3456789
10111213141516
17181920212223
24252627282930
July
recent
zfuture's house here is zfuture's
house
by zfuture (7/31/03, 2:59 AM)
i understand your concerns however,
i hardly can think of a solution. certainly, if the...
by tobi (7/29/03, 9:47 AM)
Found several more similar sites
listed This is getting to be quite a concern to...
by cobalt123 (7/27/03, 7:56 PM)
Second Post Alert on Referrer
bug livecatz I put this into "help" and now here:...
by cobalt123 (7/26/03, 7:14 PM)
well it's not easy to
find from here, anyway. think we should include a link,...
by tobi (7/24/03, 11:25 AM)
So finally I found
the helma Bugzilla - stupid me.
by mdornseif (7/24/03, 10:28 AM)
clock not that it's particularly
earthshattering but the antclock is running slow by about 15...
by kohlehydrat (7/23/03, 8:25 PM)
but blogosphere.us isn't can't really
be rated as spam can it?
by kohlehydrat (7/23/03, 8:08 PM)
More referrer spam www.webfrost.com
by Irene (7/23/03, 7:55 PM)
How to log skin names
I accessed to console?? Hi, I would like to know...
by winson (7/23/03, 4:12 PM)

Click here to get an XML version of this weblog.

Made with Antville
powered by
Helma Object Publisher