HTML question - force browser to reload a page

B

Brian Westcott

Is there something I can specify in a hyperlink to force the browser to
reload a page from the server rather than from cache? Most of the time I
don't mind if the page is reloaded from cache, but there is one time when I
want a fresh page to be reloaded. Thanks for your help.
 
M

Mike Mueller

Yes, attach a query string to the url,

instead of "domain.com/page.html"

use"domain.com/page.html?this=that"

where 'this' and 'that' can be anything, they just need to be there
 
T

Trevor Lawrence

Mike Mueller said:
Yes, attach a query string to the url,

instead of "domain.com/page.html"

use"domain.com/page.html?this=that"

where 'this' and 'that' can be anything, they just need to be there

I may be wrong but I seem to recall that they don't even need to be there,
but that the link can simply be:
"domain.com/page.html?"
 
S

Stefan B Rusynko

Correct

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


|
| | > Yes, attach a query string to the url,
| >
| > instead of "domain.com/page.html"
| >
| > use"domain.com/page.html?this=that"
| >
| > where 'this' and 'that' can be anything, they just need to be there
|
| I may be wrong but I seem to recall that they don't even need to be there,
| but that the link can simply be:
| "domain.com/page.html?"
|
| --
| Trevor Lawrence
| Canberra
| Microsoft MVP - FrontPage
| MVP Web Site http://trevorl.mvps.org
|
|
 
B

Brian Westcott

Thanks for the suggestion. When I do it the first time, the page will
reload, but then won't that page be placed in the cache so that I will
always have to be thinking of new things to add in order to get another
reload?
 
T

Trevor Lawrence

Brian Westcott said:
Thanks for the suggestion. When I do it the first time, the page will
reload, but then won't that page be placed in the cache so that I will
always have to be thinking of new things to add in order to get another
reload?

Well, not as I understand it.

I think the fact the browser thinks that it has to accept a parameter for
the page is what causes it to reload the page. And the fact that there is no
parameter or that it is the same as before doesn't matter.

Please, anyone, correct me if I am wrong.
 

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