Commit graph

2 commits

Author SHA1 Message Date
Leonora Tindall
ba32ab5290
Update to WG Upstream (#4)
* Fix typo: pretter -> pretty

* fix: corrected spelling of "minimalistic"

* Fix various build warnings.

---------

Co-authored-by: Jonas Geiler <skayo.dev@gmail.com>
2023-03-01 15:24:28 -06:00
Leonora Tindall
2ab7ddb9c8 Add cache-busting and server headers with a wrapper.
In order to support custom headers for various response types,
  this commit adds a wrapper type, ResponseWrapper, which can service
  all types of response in `bin`.

For paste objects, the preferred `Last-Modified` is used, so that caches
  can compare their exact timings with the HEAD response when
  revalidating.

For static objects, an `ETag` is used instead, based on the Cargo version
  and git hash of the codebase at compilation time; a `build.rs` is used
  for this.
2022-02-05 06:20:33 +05:30