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: 274
  • Last Modified:

HTML Cache

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
intangiblemedia
Asked:
intangiblemedia
  • 2
1 Solution
 
FinecCommented:
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
 
h4hardySr. Software EnginnerCommented:
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE" />
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE" />
0
 
intangiblemediaAuthor Commented:
Thanks guys...

Whats the difference between the 2 tags?

Cheers,

Ben
0
 
intangiblemediaAuthor Commented:
Thanks guys...

Whats the difference between the 2 tags?

Cheers,

Ben
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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