Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 174
  • Last Modified:

How can I make changes on a web page force update to browser?

I maintain a web page for a client, and every month I have to change  links that stay the same name but the link is to a pdf file that changes. I need some code to force the browser to see the changes. I Have tried the <META HTTP-EQUIV="REFRESH" CONTENT="5"> I don’t like way that looks is there a better way?
0
Soupbone79
Asked:
Soupbone79
1 Solution
 
KimputerCommented:
If you don't have full control over the webserver, and HTML is your only option, this is the most compatible option:

<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />

Open in new window

0
 
Soupbone79Author Commented:
Thanks I will give that a try and get back to you.
0
 
COBOLdinosaurCommented:
The caching client side is a user setting, and the markup is simply advisory.  The browser will not obey such directives unless the user cache setting permit it.

Cd&
0
 
GaryCommented:
How are you linking to the pdf
In this case it would make more sense for the link to be to a php page, for example, and that page loads the correct version.
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now