java - is meta http-equiv value cache control is not supported? -
i have code here on page:
<!-- no cache headers --> <meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate" /> <meta http-equiv="pragma" content="no-cache" /> <meta http-equiv="expires" content="0" /> <!-- end no cache headers -->
when go other page , hit button of browser (back page code written), still had cache state of page. option is, add phaselistener told me adding phaselistener additional codes maintain.
the question is:
1. meta tag attribute http-equiv value cache-control still supported in html in browser?? because when check in w3school, there no value cache-control, pragma, , expires attribute http-equiv.
2. if add phaselistener advantage against adding meta tags in every page.?
thanks ahead
the <meta http-equiv>
tags used when html file in question been opened non-http resource such local disk file system (via file://
uri) , not when html file in question been opened real http resource (via http://
uri). instead, real http response headers set via httpservletresponse#setheader()
been used.
so, concrete problem caused because <meta http-equiv>
tags ignored.
Comments
Post a Comment