Skip to content

Instantly share code, notes, and snippets.

@mahedi2014
Created April 11, 2016 11:13
Show Gist options
  • Select an option

  • Save mahedi2014/d57447e0efc585f72b42563be5ab04a4 to your computer and use it in GitHub Desktop.

Select an option

Save mahedi2014/d57447e0efc585f72b42563be5ab04a4 to your computer and use it in GitHub Desktop.
html5 CACHE MANIFEST
<!DOCTYPE html>
<html lang="en" manifest="offline.php">
<head>
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css"/>
<link rel="stylesheet" href="styles.css"/>
</head>
<body>
<div class="container">
<div class="panel col-md-6 col-md-offset-3">
<form action="" method="post">
<div class="input-group">
<?php echo time(); ?>
</div>
</form>
</div>
</div>
</body>
</html>
<?php
header("Cache-Control: max-age=0, no-cache, no-store, must-revalidate");
header("Pragma: no-cache");
header("Expires: Wed, 11 Jan 1984 05:00:00 GMT");
header('Content-type: text/cache-manifest');
?>
CACHE MANIFEST
# 2015-22-02 v6
underscore-min.js
index.php
styles.css
http://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css
https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js
NETWORK:
*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment