perf(pwa): enhance cache privacy protection (#1275)
Hiding the time zone of the build machine enhances privacy protection.
This commit is contained in:
parent
97004ddc44
commit
2d56597571
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ permalink: '/sw.js'
|
|||
|
||||
self.importScripts('{{ "/assets/js/data/swcache.js" | relative_url }}');
|
||||
|
||||
const cacheName = 'chirpy-{{ "now" | date: "%Y%m%d.%H%M%S" }}';
|
||||
const cacheName = 'chirpy-{{ "now" | date: "%s" }}';
|
||||
|
||||
function verifyDomain(url) {
|
||||
for (const domain of allowedDomains) {
|
||||
|
|
Loading…
Reference in a new issue