perf(pwa): enhance cache privacy protection (#1275)

Hiding the time zone of the build machine enhances privacy protection.
This commit is contained in:
Cotes Chung 2023-09-27 21:13:15 +08:00 committed by GitHub
parent 97004ddc44
commit 2d56597571
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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) {