gotosocial/internal
tobi c3b6a5b0f9
[feature] Implement cache-control and etags for static assets (#711)
* start working on etag stuff

* add + use cache middleware

* generate etags on the fly

* remove unused field

* clean up filepath

* add license headers to cache files

* add attachgroup function to router interface

* move cache into web module

* rename a couple things

* remove attachStaticFS function from router

* rename + tidy up a few things

* mount assets filesystem

* create assetsFileInfoCache

* update comment

* simplify hash

* fix string fmt

* skip last mod chk, prefer strong etags w/long cache

* move base handler to its own file
this matches the modules in the api folder

* generate new etag if file was modified

* wrap strong etag in quotation marks as per spec

* clarify logic in avatar search

* make hashing a little niftier
2022-07-18 12:55:06 +02:00
..
ap [chore] Webfinger rework (#627) 2022-06-11 11:01:34 +02:00
api [performance] Add long cache-control max age to fileserver (#710) 2022-07-15 13:23:04 +02:00
cache [feature] Implement cache-control and etags for static assets (#711) 2022-07-18 12:55:06 +02:00
concurrency [chore] Webfinger rework (#627) 2022-06-11 11:01:34 +02:00
config [feature] S3 support (#674) 2022-07-03 12:08:30 +02:00
db [feature] Add back/next buttons to profiles for paging through statuses (#708) 2022-07-13 09:57:47 +02:00
email [chore] Global server configuration overhaul (#575) 2022-05-30 14:41:24 +02:00
federation [feature] S3 support (#674) 2022-07-03 12:08:30 +02:00
gotosocial test the media manager a bit, add shutdown logic 2022-01-10 18:36:09 +01:00
gtserror [feature] More consistent API error handling (#637) 2022-06-08 20:38:03 +02:00
gtsmodel [feature] Unused avatar and header cleanup (#574) 2022-05-15 15:45:04 +01:00
httpclient [chore] move dialer inside new (#715) 2022-07-18 11:25:26 +02:00
id change muchos things 2021-09-01 11:11:26 +02:00
log [chore] improved router logging, recovery and error handling (#705) 2022-07-12 08:32:20 +01:00
media [chore] Update pruneOneLocal to use ctx (#684) 2022-07-03 12:18:59 +02:00
messages Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
netutil [security] transport.Controller{} and transport.Transport{} security and performance improvements (#564) 2022-05-15 11:16:43 +02:00
oauth [feature] Add created_at and error_description to /oauth/token endpoint (#645) 2022-06-11 10:39:39 +02:00
oidc [feature] More consistent API error handling (#637) 2022-06-08 20:38:03 +02:00
processing [feature] Add back/next buttons to profiles for paging through statuses (#708) 2022-07-13 09:57:47 +02:00
regexes [bugfix] Make hashtag regex work with non-ascii characters (#682) 2022-07-03 11:03:03 +02:00
router [feature] Implement cache-control and etags for static assets (#711) 2022-07-18 12:55:06 +02:00
storage [feature] S3 support (#674) 2022-07-03 12:08:30 +02:00
stream Fix streamed messages ending up in wrong timeline(s) (#325) 2021-11-22 19:03:21 +01:00
text [bugfix] Fix HTML escaping in instance title (#607) 2022-05-26 11:37:13 +02:00
timeline [chore] consolidate caching libraries (#704) 2022-07-10 17:18:21 +02:00
trans Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
transport [chore] Webfinger rework (#627) 2022-06-11 11:01:34 +02:00
typeutils [chore] consolidate caching libraries (#704) 2022-07-10 17:18:21 +02:00
uris [chore] Global server configuration overhaul (#575) 2022-05-30 14:41:24 +02:00
util [feature] Add back/next buttons to profiles for paging through statuses (#708) 2022-07-13 09:57:47 +02:00
validate [feature] Include password strength in error message when password strength is too low (#550) 2022-05-09 10:31:46 +02:00
visibility [bugfix] Stop some statuses from being home timelined when they shouldn't be (#585) 2022-05-18 22:23:49 +01:00
web [feature] Implement cache-control and etags for static assets (#711) 2022-07-18 12:55:06 +02:00