Skip to content

Commit bdc81f2

Browse files
mmckyclaude
andauthored
Add build-time cache-busting query string to main CSS (#193)
Appends the Jekyll build timestamp to the CSS URL so browsers always fetch fresh styles after a deployment. Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 7fc8ebf commit bdc81f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

_layouts/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@8/swiper-bundle.min.css" />
4848

4949
<!-- Template Main CSS File -->
50-
<link href="/assets/main.css" rel="stylesheet">
50+
<link href="/assets/main.css?v={{ site.time | date: '%Y%m%d%H%M%S' }}" rel="stylesheet">
5151
<link rel="icon" href="{{ '/assets/img/favicon.ico' | relative_url }}" type="image/x-icon" />
5252
</head>
5353

0 commit comments

Comments
 (0)