Skip to content

Commit 2d56597

Browse files
authored
perf(pwa): enhance cache privacy protection (#1275)
Hiding the time zone of the build machine enhances privacy protection.
1 parent 97004dd commit 2d56597

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/js/pwa/sw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ permalink: '/sw.js'
66

77
self.importScripts('{{ "/assets/js/data/swcache.js" | relative_url }}');
88

9-
const cacheName = 'chirpy-{{ "now" | date: "%Y%m%d.%H%M%S" }}';
9+
const cacheName = 'chirpy-{{ "now" | date: "%s" }}';
1010

1111
function verifyDomain(url) {
1212
for (const domain of allowedDomains) {

0 commit comments

Comments
 (0)