Browse Source

remove cache-busting resources, just go cache-first

Andrew Dolgov 5 months ago
parent
commit
8462197832
2 changed files with 3 additions and 3 deletions
  1. 2 2
      index.php
  2. 1 1
      worker.js

+ 2 - 2
index.php

@@ -60,11 +60,11 @@
 	<script src="lib/holder.min.js"></script>
 	<script src="lib/localforage.min.js"></script>
 	<title>The Epube</title>
-	<link type="text/css" rel="stylesheet" media="screen" href="css/index.css?<?php echo time() ?>" />
+	<link type="text/css" rel="stylesheet" media="screen" href="css/index.css" />
 	<link rel="shortcut icon" type="image/png" href="img/favicon.png" />
 	<link rel="manifest" href="manifest.json">
 	<meta name="mobile-web-app-capable" content="yes">
-	<script src="js/app.js?<?php echo time() ?>"></script>
+	<script src="js/app.js?"></script>
     <script type="text/javascript">
         'use strict';
 

+ 1 - 1
worker.js

@@ -5,7 +5,7 @@ const CACHE_NAME = CACHE_PREFIX + '-v2';
 const CACHE_URLS = [
 			'manifest.json',
 			'worker.js',
-			'img/ic_launcher_web.png',
+			'img/ic_launcher_web.png?v4',
 			'img/favicon.png',
 			'read.html',
 			'js/app.js',