Add performance info, add Cache-Control to /proxy
Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
This commit is contained in:
parent
06e03db76a
commit
ee6a512b47
|
@ -9,6 +9,7 @@ Join our [Matrix room](https://mto.vern.cc/#/#cobra-frontends:vern.cc) for suppo
|
|||
# Instances
|
||||
See instances.json
|
||||
|
||||
|
||||
# Run your own instance
|
||||
## Dependencies
|
||||
This program is written in Guile Scheme.
|
||||
|
@ -31,8 +32,7 @@ $ make
|
|||
6. Connect to http://localhost:8003 (or point your reverse proxy to it)
|
||||
7. Profit
|
||||
|
||||
# Environment
|
||||
|
||||
## Environment
|
||||
`PATCHES_URL` - Link to any patches that were applied. Necessary if there are any. Do not set if there aren't.
|
||||
|
||||
The following are optional.
|
||||
|
@ -43,6 +43,10 @@ The following are optional.
|
|||
|
||||
`GUMBO_LIBXML_LOCATION` - Path to `libgumbo_xml.so` (default `./gumbo-libxml/.libs/libgumbo_xml.so`, can be edited to `libgumbo_xml`, which does the same thing as `libxml2` in `LIBXML2_LOCATION`)
|
||||
|
||||
# Performance
|
||||
## Local
|
||||
RAM usage maxes out below 200 MiB (162 in production testing, different from local, which was around 95 MiB).
|
||||
|
||||
# Todo
|
||||
* Video list page*
|
||||
* Video page*
|
||||
|
|
|
@ -131,7 +131,10 @@
|
|||
(values (build-response
|
||||
#:code 200
|
||||
#:headers `((content-type .
|
||||
,(response-content-type resp))))
|
||||
,(response-content-type resp))
|
||||
(cache-control .
|
||||
,(parse-header 'cache-control
|
||||
"max-age=604800"))))
|
||||
body))
|
||||
((and (>= (response-code resp) 300) (<= (response-code resp) 399))
|
||||
(values (build-response
|
||||
|
|
Loading…
Reference in New Issue