Skip to content

Commit 29c1c51

Browse files
authored
Merge pull request #16 from 1xtr/chore/update-readme
docs: Update README.md [fix #13]
2 parents 8276e51 + 11251cd commit 29c1c51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ This is not needed for most of your assets because their filenames should contai
153153
| 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` |
154154
| THRESHOLD | `--threshold <number>` | Threshold in bytes for gzip and brotli compressions | 1024 |
155155
| 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 |
157157
| IGNORE_CACHE_CONTROL_PATHS | `--ignore-cache-control-paths <string>` | Additional paths to set "Cache-control: no-store" via comma, example "/file1.js,/file2.js" | |
158158
| 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` |
159159
| CACHE | `--cache` | When enabled f.Open reads are being cached using Two Queue LRU Cache in bits | `true` |

0 commit comments

Comments
 (0)