< Back

Document Subject: Avoid Web Cache
Hint Short Cut: Add this to your code & documentation to help you find this page.
http://#AvoidCache or http://A555F9/nn.nsf/ByAlias/AvoidCache

Here is a top tip on how to avoid the browser caching in a domino web page, an old one but a good one.




Put this in the HTML Head content area of a page or form

@SetHTTPHeader("Pragma";"no-cache");
@SetHTTPHeader("Expires";"-1");
@SetHTTPHeader("Cache-Control";"no-cache");
"<meta http-equiv=\"Pragma\" content=\"no-cache\" />" + @NewLine +
"<meta http-equiv=\"Expires\" content=\"-1\" />" + @NewLine +
"<meta http-equiv=\"Cache-Control\" content=\"no-cache\" />"