Skip to content

Commit cb8a381

Browse files
lanterndevindexzero
authored andcommitted
add help about caching
1 parent 114380c commit cb8a381

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,5 @@ This will install `http-server` globally so that it may be run from the command
6464

6565
`-h` or `--help` Print this list and exit.
6666

67-
`-c` Set cache time (in seconds) for cache-control max-age header, e.g. -c10 for 10 seconds. To disable caching, use -c-1.
67+
`-c` Set cache time (in seconds) for cache-control max-age header, e.g. -c10 for 10 seconds
68+
(defaults to '3600'). To disable caching, use -c-1.

bin/http-server

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ if (argv.h || argv.help) {
2020
" -e --ext Default file extension if none supplied [none]",
2121
" -s --silent Suppress log messages from output",
2222
" --cors Enable CORS via the 'Access-Control-Allow-Origin' header",
23-
" -o Open browser window after starting the server",
24-
" -c Set cache time (in seconds). e.g. -c10 for 10 seconds.",
23+
" -o Open browser window after staring the server",
24+
" -c Cache time (max-age) in seconds [3600], e.g. -c10 for 10 seconds.",
2525
" To disable caching, use -c-1.",
2626
"",
2727
" -S --ssl Enable https.",

0 commit comments

Comments
 (0)