From 2d56597571aaafa92251d192861ea69cce3e83d2 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Wed, 27 Sep 2023 21:13:15 +0800 Subject: [PATCH] perf(pwa): enhance cache privacy protection (#1275) Hiding the time zone of the build machine enhances privacy protection. --- assets/js/pwa/sw.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/pwa/sw.js b/assets/js/pwa/sw.js index 0e22f90..7e37234 100644 --- a/assets/js/pwa/sw.js +++ b/assets/js/pwa/sw.js @@ -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) {