[Last Call] Learn how to a build a cloud-first strategyRegister Now

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

How do I force a page refresh onload

I update a fashion site on a regular basis which involves changing flash elements, pics, copy and stylesheets for each page. How do I make sure that when the visitor looks at a page after an update the stylesheet and other elements are reloaded so the page doesn't look squiffy as it sometimes does.
Obviously by pressing F5 a few times it fixes the problem, but I need that to be automatic so people don't think the page is broken.
0
DallySP
Asked:
DallySP
2 Solutions
 
erikTsomikSystem Architect, CF programmer Commented:
try this
<head>
<meta http-equiv="refresh" content="1" />
<head>
0
 
DallySPAuthor Commented:
I've tried that, but it just keeps reloading the page every 1 second which looks a bit odd, is there not a function that makes sure that everything thats previsously chached gets replaced onload?
0
 
ThinkPaperCommented:
does your page include code to prevent the page from caching?
http://www.htmlgoodies.com/beyond/reference/article.php/3472881

Also - how frequent are these pages updated? daily? within minutes?
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
DallySPAuthor Commented:
No it doesn't, but that might be a solution. I'll have a read through the article. Its updated about once a month, so not that frequently.
0
 
Kiran Paul VJComputer EngineerCommented:
0
 
DallySPAuthor Commented:
Thank you to both of you. I think I'll use this certainly on the home page.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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