You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 10, 2025. It is now read-only.
The above configures Wagi to map the path `/static/...` to the `fileserver.gr.wasm` module. Then it serves all of the files in this project.
92
92
93
+
### Environment Variables
94
+
95
+
The following environment variables can be passed via Wagi's `-e` flag:
96
+
97
+
-`CACHE_CONTROL`: The string value of a cache-control header. If not specified, this will set cache-control to `no-cache`. Google recommends setting this value to `CACHE_CONTROL="max-age=31536000"` (cache for up to 1 year).
98
+
- Type-specific cache controls can be set using the following env vars (all of which default to `CACHE_CONTROL` if not set):
99
+
-`CSS_CACHE_CONTROL`
100
+
-`FONT_CACHE_CONTROL`
101
+
-`IMAGE_CACHE_CONTROL`
102
+
-`JS_CACHE_CONTROL`
103
+
104
+
93
105
### Testing the Static Fileserver with `curl`
94
106
95
107
This step is the same whether you use Bindle or a `modules.toml`.
0 commit comments