Solved

HTML Cache

Posted on 2011-09-15
4
263 Views
Last Modified: 2012-10-30
Hi,

When I update a webpage, for some reason, when my client checks the updates, it does not display properly because of cache in the browser.

So, what is the way to force an update (not by F5 and Shift in browser) programmatically? What adverse affects can the method you describe have?

Thanks,

Ben
0
Comment
Question by:intangiblemedia
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
Finec earned 500 total points
ID: 36542908
Hi,

Use meta tags in head tag:

<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE" />
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE" />

Open in new window

or if you'd like to refresh page with JavaScript, use this:

location.reload(true);

Open in new window

0
 
LVL 4

Expert Comment

by:h4hardy
ID: 36565236
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE" />
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE" />
0
 

Author Comment

by:intangiblemedia
ID: 36947856
Thanks guys...

Whats the difference between the 2 tags?

Cheers,

Ben
0
 

Author Comment

by:intangiblemedia
ID: 37955138
Thanks guys...

Whats the difference between the 2 tags?

Cheers,

Ben
0

Featured Post

Independent Software Vendors: 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!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question