-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
out-of-scopeNot part of the purpose and/or responsibility of this projectNot part of the purpose and/or responsibility of this project
Description
Currently http-server allows you to configure the "cache-control: max-age" value for all urls. But often you want a short max-age for e.g. /{index.html} and a long max-age for urls to versioned assets like /styles/f35ac111.main.css.
Would you accept a patch to allow specifying different max-ages for different urls? (This could be implemented most generally by matching the request url against one or more configurable regexes which map to corresponding max-ages, for instance. But if it's simpler, just giving the long cache time to everything that isn't in the root directory, or every asset with a name like a1b2c3d4.filename.ext would probably work for many use cases.)
Metadata
Metadata
Assignees
Labels
out-of-scopeNot part of the purpose and/or responsibility of this projectNot part of the purpose and/or responsibility of this project