refactor: asset caching via query param (#192)

This updates the asset caching to use a cache busting query string,
rather than a totally separate path. This makes it safer to apply
caching automatically to things like `<img>` tags, as the path does not
change anymore.
This commit is contained in:
Luca Casonato
2022-05-16 17:39:22 +00:00
committed by GitHub
parent c28d2ff863
commit cf438a7879
6 changed files with 56 additions and 24 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
{
"tasks": {
"test": "deno test -A --no-check=remote --watch",
"fixture": "deno run -A --no-check=remote --watch ./tests/fixture/main.ts",
"doc": "deno run -A --no-check=remote --watch=www/static,src/,docs/ www/main.ts"
"fixture": "deno run -A --watch ./tests/fixture/main.ts",
"doc": "deno run -A --watch=www/static,src/,docs/ www/main.ts"
}
}