Skip to content

Commit e1c0bbe

Browse files
author
Oleksandr Tk
committed
chore: cache-bust css and js assets by adding version query parameters
1 parent 6a40727 commit e1c0bbe

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

docs/about.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
document.documentElement.setAttribute('data-theme', theme);
146146
})();
147147
</script>
148-
<link rel="stylesheet" href="static/src/style.css">
148+
<link rel="stylesheet" href="static/src/style.css?v=2">
149149
</head>
150150
<body>
151151

@@ -407,6 +407,6 @@ <h3>Frequently asked questions</h3>
407407
</div>
408408
</footer>
409409

410-
<script src="static/src/script.js" defer></script>
410+
<script src="static/src/script.js?v=2" defer></script>
411411
</body>
412412
</html>

docs/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1">
1212
<meta name="theme-color" content="#0a0a0a" media="(prefers-color-scheme: dark)">
1313
<link rel="preload" as="image" href="static/assets/hero-dashboard.webp" type="image/webp" fetchpriority="high">
14-
<link rel="preload" href="static/src/style.css" as="style">
14+
<link rel="preload" href="static/src/style.css?v=2" as="style">
1515
<link rel="canonical" href="https://alextkdev.github.io/MacOSCleaner/">
1616

1717
<link rel="alternate" type="text/plain" title="llms.txt" href="https://alextkdev.github.io/MacOSCleaner/llms.txt">
@@ -187,7 +187,7 @@
187187
document.documentElement.setAttribute('data-theme', theme);
188188
})();
189189
</script>
190-
<link rel="stylesheet" href="static/src/style.css">
190+
<link rel="stylesheet" href="static/src/style.css?v=2">
191191
</head>
192192
<body>
193193

@@ -800,6 +800,6 @@ <h2>Download</h2>
800800
<button class="modal-btn next" id="modal-next" aria-label="Next screenshot">&#10095;</button>
801801
</div>
802802

803-
<script src="static/src/script.js" defer></script>
803+
<script src="static/src/script.js?v=2" defer></script>
804804
</body>
805805
</html>

docs/support.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
document.documentElement.setAttribute('data-theme', theme);
8989
})();
9090
</script>
91-
<link rel="stylesheet" href="static/src/style.css">
91+
<link rel="stylesheet" href="static/src/style.css?v=2">
9292
</head>
9393
<body>
9494

@@ -215,6 +215,6 @@ <h3 style="font-size: 1rem; font-weight: 600; margin-bottom: 10px; letter-spacin
215215
</div>
216216
</footer>
217217

218-
<script src="static/src/script.js" defer></script>
218+
<script src="static/src/script.js?v=2" defer></script>
219219
</body>
220220
</html>

0 commit comments

Comments
 (0)