Commit Graph
24 Commits
Author SHA1 Message Date
Jake Howard 8e2f708e50 Remove references to "bwrs"
The only remaining one is getting the version of the web vault, which requires coordinating with the web vault patching.
2021-12-31 11:41:34 +00:00
Jake Howard 6ddbe84bde Remove unnecessary return 2021-12-29 16:29:42 +00:00
Jake Howard 690d0ed1bb Add our own HTTP date formatter 2021-12-29 16:21:28 +00:00
Jake Howard 4584cfe3c1 Additionally set expires header when caching responses
Browsers are rather smart, but also dumb. This uses the `Expires` header
alongside `cache-control` to better prompt the browser to actually
cache.

Unfortunately, firefox still tries to "race" its own cache, in an
attempt to respond to requests faster, so still ends up making a bunch
of requests which could have been cached. Doesn't appear there's any way
around this.
2021-12-28 16:24:47 +00:00
Jake Howard f7056bcaa5 Enable socks feature for reqwest
This allowed HTTP_PROXY be set with a socks5 proxy
2021-04-07 19:25:02 +01:00
Jake Howard 994669fb69 Merge remote-tracking branch 'origin/master' into fmt 2021-04-06 21:55:28 +01:00
Jake Howard 3ab90259f2 Modify rustfmt file 2021-04-06 21:54:42 +01:00
Jake Howard 155109dea1 Extract client creation to a single place 2021-04-06 21:04:37 +01:00
Jake Howard 93c881a7a9 Reflow some lines manually 2021-03-31 21:45:05 +01:00
Jake Howard 0af3956abd Run cargo fmt on codebase 2021-03-31 21:18:35 +01:00
Jake Howard 15feff3e79 Add fmt to CI 2021-03-31 21:16:57 +01:00
Jake Howard 81fa33ebb5 Remove unnecessary reference 2021-03-28 10:59:49 +01:00
Jake Howard 6209e778e5 Icons should always be cached using full TTL 2021-03-28 10:39:12 +01:00
Jake Howard da55d5ec70 Also run actions CI on pull request
`push` only counts for pushes to branches on the repo, not forks
2021-03-27 15:21:00 +00:00
Jake Howard 828a060698 Run clippy on CI 2021-03-27 15:10:00 +00:00
Jake Howard 3e5971b9db Remove unnecessary result return types 2021-03-27 15:07:26 +00:00
Jake Howard 47c2625d38 Prevent clippy complaining at method
It's not incorrectly wrapped. We care about the return type being `Option`.
2021-03-27 14:36:50 +00:00
Jake Howard 49af9cf4f5 Correctly camelCase acronyms
https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms
2021-03-27 14:26:32 +00:00
Jake Howard 6b1daeba05 Implement From over Into
https://rust-lang.github.io/rust-clippy/master/index.html#from_over_into
2021-03-27 14:19:57 +00:00
Jake Howard 9f1240d8d9 Only construct JSON object if it's useful 2021-03-27 14:03:46 +00:00
Jake Howard a8138be69b Use if let more 2021-03-27 14:03:31 +00:00
Jake Howard ea57dc3bc9 Use matches macro 2021-03-27 14:03:07 +00:00
Jake Howard 131348a49f Add immutable caching for vault assets
The URLs are cachebusted, so updates will still be applied cleanly and immediately
2021-03-27 13:37:56 +00:00
Jake Howard b22564cb00 Cache icons on the client
This should make the vault pages load much faster, and massively reduce the number of requests.
2021-03-27 13:30:40 +00:00