Last active
May 17, 2016 03:42
-
-
Save averagesecurityguy/808a2ea585955a4b5e22f3ff8ba28a0e to your computer and use it in GitHub Desktop.
Mozilla Cache Issues
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The cache system in FF 46.0.1 appears to ignore meta tags with cache directives. Copy the meta.html and meta.php files below to a directory and start up a web server in that directory using php -S 127.0.0.1:8000. Then visit http://127.0.0.1:8000/meta.html and http://127.0.0.1:8000/meta.php. After visiting both pages open about:cache and look at the list of cached documents. You will see that meta.html is cached while meta.php is not. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta http-equiv="Expires" CONTENT="-1"> | |
<meta http-equiv="Cache-Control" CONTENT="no-cache"> | |
<meta http-equiv="Cache-Control" CONTENT="no-store"> | |
<meta http-equiv="Pragma" CONTENT="no-cache"> | |
</head> | |
<body> | |
<h1>This page is cached.</h1> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//set headers to NOT cache a page | |
header("Cache-Control: no-cache, must-revalidate"); | |
header("Pragma: no-cache"); | |
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); | |
?> | |
<html> | |
<head><title>Cached</title></head> | |
<body> | |
<h1>This page is not cached.</h1> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment