iachat/app/controllers
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
..
api feat: update cache headers for cache_keys (#7283) 2023-06-14 13:21:51 +05:30
concerns feat: API to create HMAC verified conversations (#7209) 2023-05-29 21:57:24 +05:30
devise_overrides feat: add audit trail for sign_in and sign_out (#7158) 2023-05-25 14:27:30 +05:30
installation feat: Unify user and super admin credentials (#3830) 2022-01-25 16:58:49 -08:00
microsoft Fix issues with Microsoft Provider (#6702) 2023-03-20 12:27:43 +05:30
platform/api/v1 chore: Enable the new Rubocop rules (#7122) 2023-05-19 14:37:10 +05:30
public/api/v1 fix: around_action not yielding is params are present (#7259) 2023-06-06 14:55:08 -07:00
super_admin feat: Ability to update avatars from super admin (#7264) 2023-06-09 15:32:24 +05:30
survey feat: CSAT response collection public page (#2685) 2021-08-03 18:22:50 +05:30
twilio feat: Support Twilio Messaging Services (#4242) 2022-07-08 18:20:07 +05:30
twitter fix: response body in twitter callback (#6907) 2023-04-14 16:48:28 +05:30
webhooks feat: Support for Whatsapp Cloud API (#4938) 2022-07-06 21:45:03 +02:00
android_app_controller.rb chore: Universal Linking for Android (#2324) 2021-06-02 08:46:45 -07:00
api_controller.rb chore: Upgrade to Rails 7 (#6719) 2023-05-06 10:44:52 +05:30
apple_app_controller.rb Chore: Apple site association file for deep linking (#805) 2020-05-03 12:16:11 +05:30
application_controller.rb feat: Allow SaaS users to manage subscription within the dashboard (#5059) 2022-07-19 19:04:17 +05:30
dashboard_controller.rb chore: add build id to settings page (#6873) 2023-04-18 00:35:35 +05:30
microsoft_controller.rb fix: Identity JSON response header (#6326) 2023-02-02 11:01:18 +05:30
platform_controller.rb Chore: Inbox Members API improvements (#3008) 2021-09-14 11:55:02 +05:30
public_controller.rb chore: Improve Helpcenter custom domains (#5456) 2022-09-19 17:36:01 -07:00
swagger_controller.rb chore: Enable the new Rubocop rules (#7122) 2023-05-19 14:37:10 +05:30
widget_tests_controller.rb feat: Support Dark mode for the widget (#4137) 2022-04-01 20:59:03 +05:30
widgets_controller.rb chore: Upgrade to Rails 7 (#6719) 2023-05-06 10:44:52 +05:30