feat: publish av-tools 0.2.0
This commit is contained in:
@@ -14,7 +14,7 @@ tools.example.test {
|
||||
@wasm path_regexp wasm \.wasm$
|
||||
header @wasm Content-Type "application/wasm"
|
||||
|
||||
@immutable path_regexp immutable ^/av/(?:vendor/ffmpeg/0\.12\.10/(?:st|mt)/ffmpeg-core(?:\.worker)?\.(?:js|wasm)|assets/.*-[A-Za-z0-9_-]{8,}\.[^/]+)$
|
||||
@immutable path_regexp immutable ^/av/(?:vendor/ffmpeg/0\.12\.10-reviewed-stack5m\.1/(?:st|mt)/ffmpeg-core(?:\.worker)?\.(?:js|wasm)|assets/.*-[A-Za-z0-9_-]{8,}\.[^/]+)$
|
||||
header @immutable Cache-Control "public, max-age=31536000, immutable"
|
||||
|
||||
redir /av /av/ 308
|
||||
|
||||
@@ -32,7 +32,7 @@ cross-origin resource policy and is outside the supported deployment profile.
|
||||
|
||||
Use `no-cache` for `index.html`, `toolbox-app.json`, notices and other stable
|
||||
names. The files under the exact version directory
|
||||
`vendor/ffmpeg/0.12.10/{st,mt}/` are content-verified and may use:
|
||||
`vendor/ffmpeg/0.12.10-reviewed-stack5m.1/{st,mt}/` are content-verified and may use:
|
||||
|
||||
```text
|
||||
Cache-Control: public, max-age=31536000, immutable
|
||||
@@ -55,7 +55,7 @@ For a host with a `_headers`-style configuration, adapt:
|
||||
Content-Security-Policy: default-src 'self'; script-src 'self' 'wasm-unsafe-eval'; worker-src 'self' blob:; connect-src 'self'; img-src 'self' blob: data:; media-src 'self' blob:; font-src 'self'; style-src 'self'; object-src 'none'; frame-src 'none'; frame-ancestors 'none'; base-uri 'none'; form-action 'none'
|
||||
Cache-Control: no-cache
|
||||
|
||||
/av/vendor/ffmpeg/0.12.10/*
|
||||
/av/vendor/ffmpeg/0.12.10-reviewed-stack5m.1/*
|
||||
Cache-Control: public, max-age=31536000, immutable
|
||||
|
||||
/av/assets/*
|
||||
@@ -68,7 +68,7 @@ real response rather than relying only on configuration:
|
||||
|
||||
```sh
|
||||
curl -sSI https://tools.example.test/av/ | sed -n '1,30p'
|
||||
curl -sSI https://tools.example.test/av/vendor/ffmpeg/0.12.10/st/ffmpeg-core.wasm | sed -n '1,30p'
|
||||
curl -sSI https://tools.example.test/av/vendor/ffmpeg/0.12.10-reviewed-stack5m.1/st/ffmpeg-core.wasm | sed -n '1,30p'
|
||||
```
|
||||
|
||||
In browser developer tools, also verify `window.crossOriginIsolated === true`,
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
map $uri $av_tools_cache_control {
|
||||
default "no-cache";
|
||||
"~^/(?:.*/)?vendor/ffmpeg/0\.12\.10/(?:st|mt)/ffmpeg-core(?:\.worker)?\.(?:js|wasm)$" "public, max-age=31536000, immutable";
|
||||
"~^/(?:.*/)?vendor/ffmpeg/0\.12\.10-reviewed-stack5m\.1/(?:st|mt)/ffmpeg-core(?:\.worker)?\.(?:js|wasm)$" "public, max-age=31536000, immutable";
|
||||
"~^/(?:.*/)?assets/.*-[A-Za-z0-9_-]{8,}\.[^/]+$" "public, max-age=31536000, immutable";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user