Pages refresh/caching.

|tera|

Master of Messengers
Joined
Mar 31, 2006
Messages
25,903
Reaction score
2,952
Location
terra
I've got a stupid problem with hopefully a stupid solution.

I'm updating a site, but noticed that it's still cached in the browser.

I need to be able to refresh/reload each page on the site as soon as it displays and only once, not within and continually over a few seconds.

Basically what this would allow is that as the visitor browses through a page, it reloaded all the menus and content already for the session.

I don't want to strain a web server and I don't want to mess around with no-cache options.

I'd just like each page to refresh once and completely as soon as it's accessed.

Possible?
 
<body onLoad=window.refresh>

should work

(replace the <body> tag with the above)

but I'm sure that someone who knows more about javascript / html will jump in :D
 
<body onLoad=window.refresh>

should work

(replace the <body> tag with the above)

but I'm sure that someone who knows more about javascript / html will jump in :D

Are you poking the tera? :( nasty dudemanguy! :p

Edit: you aren't! LOL! Sorreeeeyyyyy!
 
No, you frikken banana! :D :D :D

replace the opening body tag...

you've got this:

<body style="background-color:#FF8000; height: 100%">

replace it with this:

<body onLoad=window.refresh>

(and put your styles in a .css file)
 
No, you frikken banana! :D :D :D

replace the opening body tag...

you've got this:

<body style="background-color:#FF8000; height: 100%">

replace it with this:

<body onLoad=window.refresh>

(and put your styles in a .css file)

I asked Notepad to look for body and it showed me the other one!

Can I add that body tag you gave before the style body tag? Won't it mess up the style if I remove the body? :p
 
No, there can only be one <body> tag.
Use this:

<body onLoad="window.refresh" style="background-color:#FF8000; height: 100%">
 
No, there can only be one <body> tag.
Use this:

<body onLoad="window.refresh" style="background-color:#FF8000; height: 100%">

Either I'm really tired and the pain is getting to me. Or I just don't see where it is.

Let's say the Contact Us page, where is it? :(

nm, I need a pill and a bed.

Thanks texo, love you man.
 
OK, on the contact us page, you've just got this:

<body onLoad=window.refresh>

replace that with

<body onLoad="window.refresh" style="background-color:#FF8000; height: 100%">
 
I've got a stupid problem with hopefully a stupid solution.

I'm updating a site, but noticed that it's still cached in the browser.

I need to be able to refresh/reload each page on the site as soon as it displays and only once, not within and continually over a few seconds.

Basically what this would allow is that as the visitor browses through a page, it reloaded all the menus and content already for the session.

I don't want to strain a web server and I don't want to mess around with no-cache options.

I'd just like each page to refresh once and completely as soon as it's accessed.

Possible?
<body onLoad=window.refresh>

should work

(replace the <body> tag with the above)

but I'm sure that someone who knows more about javascript / html will jump in :D

You shouldn't unessesary put stuff into the onload of the body of the pages or force the visiter to just do some action like reloading. the browser at default should detect hey theres something new and show that, its not always wise to implement a hack to circumvate something that is so by design or set for a reason.

obviously if person that is visiting the site and have either disabled the javascript or have changed the settings if a page should be requested again if changed- it would not show the updated content.

you as a dev should have your browser to always show the changed content (which usually is so per default in ie/ff) and script debuggin enabled to visible cue you on scripting issues rather than supressing it.

btw you know that if you use that hack that visiters will be prompted if they should allow this script to run before it will take affect as per most out of the box browser nowadays ?, which will very annoying todo this each time for each page....
 
Top
Sign up to the MyBroadband newsletter
X