Solved

HTML Cache

Posted on 2011-09-15
4
264 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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
HTML question 2 33
ASP.NET, Globalization, language indexes, translation, conversion. 2 69
Insert PHP into HTML page. 7 52
My tooltip is not displaying correct 11 17
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

739 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