Rework how we bypass browser caches of the scouting app
This patch adds a new way to access files on the webserver. Users can
now request files by their sha256 checksum. The URL pattern follows
`/sha256/<checksum>/<path>`. The `<path>` portion doesn't actually
matter, but it helps with readability.
This patch migrates the main bundle and the pictures to use the new
checksum-addressable scheme.
Signed-off-by: Philipp Schrader <philipp.schrader@gmail.com>
Change-Id: I76eaa9b0f69af98e48e8e73e32c82ce2916fbe41
diff --git a/scouting/www/entry/entry.ng.html b/scouting/www/entry/entry.ng.html
index 0e76268..d0805d4 100644
--- a/scouting/www/entry/entry.ng.html
+++ b/scouting/www/entry/entry.ng.html
@@ -37,7 +37,10 @@
<div *ngSwitchCase="'Auto'" id="auto" class="container-fluid">
<div class="row">
- <img src="/pictures/field/quadrants.jpeg" alt="Quadrants Image" />
+ <img
+ src="/sha256/cbb99a057a2504e80af526dae7a0a04121aed84c56a6f4889e9576fe1c20c61e/pictures/field/quadrants.jpeg"
+ alt="Quadrants Image"
+ />
<form>
<input
type="radio"
@@ -75,7 +78,10 @@
</form>
</div>
<div class="row">
- <img src="/pictures/field/balls.jpeg" alt="Image" />
+ <img
+ src="/sha256/cbb99a057a2504e80af526dae7a0a04121aed84c56a6f4889e9576fe1c20c61e/pictures/field/balls.jpeg"
+ alt="Image"
+ />
<form>
<!--Choice for each ball location-->
<input