Struct std::StaticOptions
struct StaticOptions {
int etag;
int last_modified;
int ranges;
long long max_age;
int index_html;
int spa_fallback;
int dotfiles;
}Fields
send ETag and honor If-None-Match (default 1)
send Last-Modified, honor If-Modified-Since (default 1)
honor Range (default 1)
Cache-Control: max-age=N; -1 = no header (default -1)
a directory serves its index.html (default 1)
a missing path serves the root's index.html (default 0)
serve names starting with '.' (default 0: 404)