Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to prevent an HTML5 page from being cached

Posted on 2015-02-20
1
Medium Priority
?
146 Views
Last Modified: 2015-02-20
What's the syntax for preventing a page from being cached.
Or have it refresh each time it is served.
0
Comment
Question by:JElster
1 Comment
 
LVL 20

Accepted Solution

by:
Peter Hutchison earned 2000 total points
ID: 40621158
You need to use the meta refresh command in the page's header section to refresh the page every 60 seconds:
<meta http-equiv="Refresh" Content="600">

and:
<meta http-equiv="Cache-Control" Content="No-Cache">
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Find out what you should include to make the best professional email signature for your organization.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

824 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