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

View file

@ -6,7 +6,7 @@ permalink: '/sw.js'
self.importScripts('{{ "/assets/js/data/swcache.js" | relative_url }}'); 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) { function verifyDomain(url) {
for (const domain of allowedDomains) { for (const domain of allowedDomains) {