This website uses cookies to improve user experience. By using our website you consent to all cookies in accordance with our Cookie Policy.
FAQ

We provide webhosting for thousands of domains.
Transfer your domains to us and join our satisfied customers.

Domains from 5,99€. Renewal for the same price.

Support

FAQ

Others

HOTLINE  
+421 221 028 430
E-MAIL support
support@exohosting.com
ICQ support
213 057 503
ONLINE support

Mo-Fr: 08:00-20:00
Sa-Su: 10:00-18:00

Economy

Mo-Fr: 08:00-16:30

Free transfer of .sk domain

If you transfer your domain to us, we pay transfer fee for you.

How to prevent the browser from caching?

seen: 1364 | Date added: 05.09.2010 | rating:
"

To prevent the browser from caching, you can use this function:

function DisableBrowserCache() {
// Date in the past

header(""Expires: Mon, 26 Jul 1997 05:00:00 GMT"");

// Still modifying
header(""Last-Modified: "" . gmdate(""D, d M Y H:i:s""). "" GMT"");

// HTTP/1.1 = caching forbidden
header(""Cache-Control: no-store, no-cache, must-revalidate"");
header(""Cache-Control: post-check=0, pre-check=0"",false);

// HTTP/1.0 = caching forbidden
header(""Pragma: no-cache"");
}

This function has to be executed at the beginning of your script before any other output is sent.

"
Was this article helpful?
no
Hodnotenie 2.71/5 (587 hlasov)
yes

Related topics