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
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -153,7 +153,7 @@ This is not needed for most of your assets because their filenames should contai
153
153
| BROTLI |`--brotli`| When enabled it will create .br files using brotli compression for files which size exceedes threshold and serve it instead of original one if client accepts brotli encoding. If gzip also enabled it will try to serve brotli first |`false`|
154
154
| THRESHOLD |`--threshold <number>`| Threshold in bytes for gzip and brotli compressions | 1024 |
155
155
| DIRECTORY |`-d <string>` or `--directory <string>`| Directory to serve |`.`|
156
-
|CACHE_CONTROL_MAX_AGE|`--cache-control-max-age <number>`| Set cache time (in seconds) for cache-control max-age header To disable cache set to -1. `.html` files are not being cached | 604800 |
156
+
|CACHE_MAX_AGE|`--cache-max-age <number>`| Set cache time (in seconds) for cache-control max-age header To disable cache set to -1. `.html` files are not being cached | 604800 |
157
157
| IGNORE_CACHE_CONTROL_PATHS |`--ignore-cache-control-paths <string>`| Additional paths to set "Cache-control: no-store" via comma, example "/file1.js,/file2.js" ||
158
158
| SPA_MODE |`--spa` or `--spa <bool>`| When SPA mode if file for requested path does not exists server returns index.html from root of serving directory. SPA mode and directory listing cannot be enabled at the same time |`true`|
159
159
| CACHE |`--cache`| When enabled f.Open reads are being cached using Two Queue LRU Cache in bits |`true`|
0 commit comments