new branch windows

This commit is contained in:
Hash Borgir
2021-03-22 05:12:11 -06:00
parent b3d62294e6
commit 49003c236a
29 changed files with 807 additions and 0 deletions

35
no-cache.php Normal file
View File

@@ -0,0 +1,35 @@
<?php
error_reporting(-1);
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Cache-Control: no-cache, no-store, must-revalidate");
header("Pragma: no-cache");
?>
<style type="text/css">@import url("style.css");</style>
<a href="index.php">Go back to index</a>
| <a href="<?php echo $_SERVER["REQUEST_URI"];?>">Refresh</a>
<title>No cache</title>
<h1>No cache</h1>
<p>This example uses PHP header() calls to set cache control.</p>
Some random number:
<?php echo rand(1, 1000); ?>
<p>
Go back and forward using mouse context menu to see if this number changed,
if so the cache was disabled successfully.
</p>
<p>
To avoid caching of static resources put some random query string
when including js/css files, see for example:
</p>
<pre>
&lt;link href="css/style.css?r=&lt;?php echo time(); ?&gt;" rel="stylesheet" type="text/css" /&gt;
</pre>