Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.
Use existing content_map to provide cache control header per file type
Ideally I'd prefer to do it with a regex or partial match on the content type, but everything is already setup for us to piggyback on this instead. I.e. I'd like to do multiple arguments like this:
-h "image" "private, max-age=604800" -h "css" "private, max-age=86400"
or a single argument where we split the string on a comma:
-h "image,css" "private, max-age=604800"
but instead I am happy enough to be able to do:
-h .jpg "private, max-age=604800" -h .png "private, max-age=86400"
It's good enough for what I want to stop here.
- Adds a new cache-bozo.c file
Set cache-control only for images
A bit of an intermediate commit, just investigating what works. I think really
The bit I'm then missing is how to set a catch all or "owtelse" cache-control?
Initial work on setting Cache-Control headers
The bit that foxed me was understanding getopts and that the "h" needed a ":"
This definitely and utterly sets a header. It doesn't seem that it's recognised
But what can you do?
At the moment this just sets a header everywhere for everything being served.
|21:16||Add version 20170201 of Bozohttpd check-in: b786821675 user: atomicules tags: trunk|
|21:05||initial empty check-in check-in: 0fe8cd1d44 user: atomicules tags: trunk|