Skip to content

Commit 0a3d2a4

Browse files
Removed version parameter and updated cache control headers
1 parent 36d2c2a commit 0a3d2a4

3 files changed

Lines changed: 13 additions & 13 deletions

File tree

dist/buzzwald.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/version.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"version": "0.0.1",
3-
"commit": "3d79c31",
4-
"timestamp": 1752741185197,
5-
"buildDate": "2025-07-17T08:33:05.197Z",
6-
"buildId": "0.0.1-3d79c31-1752741185197",
7-
"cacheBuster": "v=0.0.1&t=1752741185197"
3+
"commit": "36d2c2a",
4+
"timestamp": 1752954060802,
5+
"buildDate": "2025-07-19T19:41:00.802Z",
6+
"buildId": "0.0.1-36d2c2a-1752954060803",
7+
"cacheBuster": "v=0.0.1&t=1752954060803"
88
}

src/loader.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@
7474
fetch(url, {
7575
signal: controller.signal,
7676
cache: 'no-cache',
77-
headers: {
78-
'Cache-Control': 'no-cache, no-store, must-revalidate',
79-
'Pragma': 'no-cache'
80-
}
77+
// headers: {
78+
// 'Cache-Control': 'no-cache, no-store, must-revalidate',
79+
// 'Pragma': 'no-cache'
80+
// }
8181
})
8282
.then(response => {
8383
clearTimeout(timeoutId);
@@ -162,9 +162,9 @@
162162
const versionData = await getLatestVersion();
163163

164164
let scriptUrl;
165-
if (versionData && versionData.version && versionData.timestamp) {
166-
// Use versioned URL with timestamp for cache busting
167-
scriptUrl = `${CDN_BASE}@latest/dist/buzzwald-widget.js?v=${versionData.version}&t=${versionData.timestamp}`;
165+
if (versionData && versionData.timestamp) {
166+
// Use timestamp for cache busting
167+
scriptUrl = `${CDN_BASE}@latest/dist/buzzwald-widget.js?t=${versionData.timestamp}`;
168168
} else {
169169
// Fallback to simple cache busting with current timestamp
170170
scriptUrl = `${FALLBACK_SCRIPT_URL}?t=${Date.now()}`;

0 commit comments

Comments
 (0)