Deployed Support

G

geretzme1

Hey Im a marine with MSSG31. We push out updates for our website but the
thing is, when you open the updated website, it will bring up cached files.
And you have to clear your temporary files then refresh in order for the
webpage to load. Now I know that you have to clear your temporary internet
files and hit refresh, but the common marine mom does not. So she just look
at the page and thinks its not updated. I was curious if there is some kind
of code you add to the script or some way to stop the website from displaying
the the old files. Any help would be greatly appreciated.

Respectfully
Lcpl Martin E Geretz
 
S

Stefan B Rusynko

Some hosts (like AOL) also cache pages
- best workaround is to set the server to not cache pages (contact your host)

One other workaround is to make the browser think you are passing a variable in your links

<A href="thepage.htm?">The page</a>
or
<A href="thepage.htm?x=0">The page</a>




| Hey Im a marine with MSSG31. We push out updates for our website but the
| thing is, when you open the updated website, it will bring up cached files.
| And you have to clear your temporary files then refresh in order for the
| webpage to load. Now I know that you have to clear your temporary internet
| files and hit refresh, but the common marine mom does not. So she just look
| at the page and thinks its not updated. I was curious if there is some kind
| of code you add to the script or some way to stop the website from displaying
| the the old files. Any help would be greatly appreciated.
|
| Respectfully
| Lcpl Martin E Geretz
 
C

clintonG

Google: "prevent browser cache"

There's a better way to 'push' content these days than using a web page. Its
called RSS (Really Simple Syndication) which is actually a huge trend you
should know about. The content can be made to be displayed in web pages.
When the page loads it only has the most updated content. Most however are
using 'readers' such as RSS Bandit. Maybe you've seen the little orange
icons on web pages lately? Consuming the 'feed' in a web page generally
requires scripting skills which is why readers remain the most useful at the
moment.
 
M

Mike Mueller

Semper Fi

The first 2 lines below tell the browser not to cache the
page.
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="pragma" content="no-cache">

You can also add in ONE of the next 2 lines. The 0 setting
says to the browser to check for mods all of the time. The
second line allows for a specific time, and it must be in
that format and the timezone must be GMT

<meta http-equiv="expires" content="0">
<meta http-equiv="expires" content="Mon, 22 Jul 2002
11:12:01 GMT">



geretzme1 wrote:
: Hey Im a marine with MSSG31. We push out updates for our
: website but the thing is, when you open the updated
: website, it will bring up cached files. And you have to
: clear your temporary files then refresh in order for the
: webpage to load. Now I know that you have to clear your
: temporary internet files and hit refresh, but the common
: marine mom does not. So she just look at the page and
: thinks its not updated. I was curious if there is some
: kind of code you add to the script or some way to stop
: the website from displaying the the old files. Any help
: would be greatly appreciated.
:
: Respectfully
: Lcpl Martin E Geretz
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top