Skip to content

Commit

Permalink
add help about caching
Browse files Browse the repository at this point in the history
  • Loading branch information
lanterndev authored and indexzero committed Nov 4, 2014
1 parent 114380c commit cb8a381
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -64,4 +64,5 @@ This will install `http-server` globally so that it may be run from the command

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

`-c` Set cache time (in seconds) for cache-control max-age header, e.g. -c10 for 10 seconds. To disable caching, use -c-1.
`-c` Set cache time (in seconds) for cache-control max-age header, e.g. -c10 for 10 seconds
(defaults to '3600'). To disable caching, use -c-1.
4 changes: 2 additions & 2 deletions bin/http-server
Expand Up @@ -20,8 +20,8 @@ if (argv.h || argv.help) {
" -e --ext Default file extension if none supplied [none]",
" -s --silent Suppress log messages from output",
" --cors Enable CORS via the 'Access-Control-Allow-Origin' header",
" -o Open browser window after starting the server",
" -c Set cache time (in seconds). e.g. -c10 for 10 seconds.",
" -o Open browser window after staring the server",
" -c Cache time (max-age) in seconds [3600], e.g. -c10 for 10 seconds.",
" To disable caching, use -c-1.",
"",
" -S --ssl Enable https.",
Expand Down

0 comments on commit cb8a381

Please sign in to comment.