Commit Graph

28 Commits

Author SHA1 Message Date
rijkvanzanten
801e868554 Fix remaining eslint errors
h/t @paescuj
2021-04-29 15:55:12 -04:00
rijkvanzanten
f836c90990 Set cache-control no-cache for private resources
Forces the browser to revalidate the cached item with the server, ensuring you don't pull the wrong records from the browser cache.

Fixes #5175
2021-04-21 13:27:15 -04:00
rijkvanzanten
178e91106b Remove unused imports 2021-01-12 16:15:44 -05:00
rijkvanzanten
6b029b416b iRemove imported types that aren't needed 2021-01-12 16:11:08 -05:00
Rijk van Zanten
a41559b32f Merge branch 'main' into fix/async-handlers 2021-01-12 12:27:27 -07:00
rijkvanzanten
c54f9f70d6 Don't send cache header when no-cache has been requested 2020-12-31 15:17:43 -05:00
rijkvanzanten
2b64449f6c Check for capitalized cache control header 2020-12-22 17:53:33 -05:00
WoLfulus
c5f3802da3 Replace express-async-handler for a local function. 2020-12-22 17:11:08 -03:00
rijkvanzanten
d08c91389a Remove quotes from max-age in cache-control 2020-12-17 18:57:33 -05:00
rijkvanzanten
766911cba0 Allow for no-cache Cache-Control request header 2020-12-16 18:09:41 -05:00
rijkvanzanten
578b761ded Add auto-purge option
And add cache-control header when auto purge is disabled

Fixes #3425
2020-12-16 14:26:38 -05:00
rijkvanzanten
a8552abc23 Treat sanitizedquery as frozen 2020-09-08 18:54:18 -04:00
rijkvanzanten
b19ffd960b Add response middleware and cache 2020-09-08 18:28:23 -04:00
rijkvanzanten
266c07fde7 Temporarily disable caching 2020-09-08 17:22:34 -04:00
kukulaka
9d6f80149c changes for caching
Most changes should be here, just making sure flush cache is in for each post / delete
2020-08-31 17:16:45 +01:00
Tanya Byrne
efcb711d92 changing the cache again 2020-08-25 13:23:54 +01:00
Tanya Byrne
70051a3b72 remofe unneed notes 2020-08-24 14:04:50 +01:00
Tanya Byrne
fb10e32c9f Some examples of how to use 2020-08-24 14:04:09 +01:00
Tanya Byrne
c96d24eafe Convert those strings 2020-08-24 13:53:23 +01:00
Tanya Byrne
f6912ee221 changed so can send TTL and death TTL in query parameters 2020-08-24 13:49:15 +01:00
Tanya Byrne
8e1f9c6565 missing bracket 2020-08-24 13:19:12 +01:00
Tanya Byrne
2f9099f08d change so can send cache live variables 2020-08-24 13:18:08 +01:00
Tanya Byrne
34c934cd5b update cache 2020-08-24 13:00:50 +01:00
Tanya Byrne
1f8e8ef4ee adding node part 2020-08-24 12:59:54 +01:00
Tanya Byrne
6a0f294f4d updating of redis cache 2020-08-24 12:44:59 +01:00
Tanya Byrne
cc6b272442 Basic format of cache middleware 2020-08-21 16:16:36 +01:00
Tanya Byrne
1d42e691d3 node cache service 2020-08-19 18:10:43 +01:00
Tanya Byrne
ad5fbbdd95 update env 2020-08-18 18:05:59 +01:00