iachat/app
Shivam Mishra a86e236d19
feat: update cache headers for cache_keys (#7283)
Update the cache headers for cache_keys to max-age=10, private, stale-while-revalidate=300

1. The cache will be fresh for 10 seconds (max-age=10). During this time, the browser will use the cached version without checking with the server.
2. After the initial 10 seconds, the browser can continue to serve the stale cache for up to 5 minutes (stale-while-revalidate=300). During this period, it will also try to revalidate and update the cache in the background.
3. After 310 seconds in total (10 seconds fresh, 300 seconds stale), if the browser has not been able to revalidate the cache, it will attempt to fetch the fresh resource directly from the server for subsequent requests, causing potential latency equivalent to a network request.

This means that the data will be directly revalidated only every 5 mins. Other times, it will stay fresh for 10 seconds and revalidate in the background. In most cases, we won't have to rely on a cache validation check because there is a WebSocket event for revalidation, so we know if something changes.

Right now the stale-while-revalidate is 5 minutes, we can then move it to 15 minutes.

> The stale-while-revalidate header is not supported in Safari, for Safari the cache keys will only stay in memory for 10 seconds before being marked stale
2023-06-14 13:21:51 +05:30
..
actions chore: Ability to Disable Gravatars (#5027) 2022-07-21 19:27:12 +02:00
assets feat: Ability to update avatars from super admin (#7264) 2023-06-09 15:32:24 +05:30
builders fix: unattended count mismatch in report and list (#7263) 2023-06-08 17:58:13 +05:30
channels chore: Sentry issues (#4623) 2022-05-06 14:50:55 +05:30
controllers feat: update cache headers for cache_keys (#7283) 2023-06-14 13:21:51 +05:30
dashboards feat: Ability to update avatars from super admin (#7264) 2023-06-09 15:32:24 +05:30
dispatchers Chore: clean up Reporting Events (#4044) 2022-02-28 18:16:12 +05:30
drops feat: Enable template variables in channel greeting messages (#6971) 2023-04-26 20:23:46 +05:30
fields feat: Supports masking tokens in super admin (#6491) 2023-02-21 17:50:55 +05:30
finders fix: unattended count mismatch in report and list (#7263) 2023-06-08 17:58:13 +05:30
helpers feat: Enable template variables in channel greeting messages (#6971) 2023-04-26 20:23:46 +05:30
javascript feat: update banner design [CW-1491] (#7296) 2023-06-14 12:56:42 +05:30
jobs feat: Contact Exports (#7258) 2023-06-13 09:18:43 +05:30
listeners Fix: Consider bot message on slack integration (#6793) 2023-03-31 18:56:51 +05:30
mailboxes fix: search for nil in-reply-to messages (#7286) 2023-06-12 16:01:56 +05:30
mailers feat: Contact Exports (#7258) 2023-06-13 09:18:43 +05:30
models feat: Contact Exports (#7258) 2023-06-13 09:18:43 +05:30
policies feat: Contact Exports (#7258) 2023-06-13 09:18:43 +05:30
presenters fix: check content disposition, for inline messages in mail (#7231) 2023-06-05 20:28:32 +05:30
services fix: Automations condition based quoted text (#7272) 2023-06-09 17:00:05 +05:30
views feat: Contact Exports (#7258) 2023-06-13 09:18:43 +05:30
workers fix: Update auto reply and hide reply time for email inbox (#3985) 2022-02-15 17:11:28 +05:30
test-matchers.js Initial testing with jest (#133) 2019-10-15 00:18:46 +05:30