wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes META HTTP-EQUIV - to refresh Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "META HTTP-EQUIV - to refresh" Watch "META HTTP-EQUIV - to refresh" New topic
Author

META HTTP-EQUIV - to refresh

Bala Krishniah
Ranch Hand

Joined: Dec 14, 2000
Posts: 81
I need to refresh the html page to eliminate the caching.
I was going through the HTTP doc. and foind that there are
(1) <META HTTP-EQUIV="Expires" CONTENT="0">
(2) <META http-equiv="Pragma" content="no-cache">
(3) <META http-equiv="Cache-Control" content="no-cache">
these three option.
The doc. says that HTTP/1.0 caches might not implement Cache-Control and might only implement Pragma: no-cache
So that means I need to use both (2) (3) and also (1).
Because if I doont use (1) its not refreshing. But then I dont know what exactly (2) (#) is used for.
Then again I also need to useing the META HTTP-EQUIV tag to set the "content-type"...
<META HTTP-EQUIV="content-type" CONTENT="text/html;charset=iso-8859-1">
Can I use HTTP-EQUIV to set both (1)'content-type' and (2) the abover three options to eliminate caching problem
Thanks
Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4340
    
    2

I would just try it and see.


SCJP
Visit my download page
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: META HTTP-EQUIV - to refresh