Skip to content

Commit 05a19eb

Browse files
committed
Remove cachebust param
1 parent 7b8439a commit 05a19eb

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

src/tool/subcommands/api_cmd/test_snapshot.rs

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -212,16 +212,14 @@ mod tests {
212212
.trim()
213213
.split("\n")
214214
.filter_map(|n| {
215-
let base_url = format!(
216-
"https://forest-snapshots.fra1.cdn.digitaloceanspaces.com/rpc_test/{n}"
217-
);
218-
let mut url = Url::parse(&base_url).ok()?;
219-
// Append a timestamp to the URL as a `cachebust` query parameter
220-
// to prevent the CDN from serving a potentially stale cached version
221-
// of the file, in case it's been recently re-uploaded with changes.
222-
url.query_pairs_mut()
223-
.append_pair("cachebust", &Utc::now().timestamp().to_string());
224-
Some((n, url))
215+
Url::parse(
216+
format!(
217+
"https://forest-snapshots.fra1.cdn.digitaloceanspaces.com/rpc_test/{n}"
218+
)
219+
.as_str(),
220+
)
221+
.ok()
222+
.map(|url| (n, url))
225223
})
226224
.collect_vec();
227225
let project_dir = ProjectDirs::from("com", "ChainSafe", "Forest").unwrap();

0 commit comments

Comments
 (0)