Hi Dipita,
dshah wrote:
Currently, we specify the following in our html page:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
.....
</head>
I am wondering if we remove the line with CACHE-CONTROL, would click behave
differently?
Nope, you can tune the meta tags and HTTP headers to your liking. This will influence the behavior
of the browser, not Click.
Keep in mind that the browsers cache behavior is controlled by both <meta> tags and HTTP headers and
HTTP headers normally overrides <meta> tags.
You can either tune the HTTP headers globally for all pages in your click.xml or on a per Page basis
through the setHeader/setHeaders/getHeaders methods:
public class MyPage extends Page {
public void onInit() {
// remove all preconfigured headers
getHeaders().clear();
}
}
kind regards
bob