Description
It's expensive to make network requests to fetch data every time. We should take advantage of the browser cache to store messages, events, itineraries, and all relevant data to minimize network requests.
Acceptance Criteria
Developer Notes
- Don't use local/session storage. Use the actual browser cache.
Data that should be cached:
- Non-sensitive account info
- The user's itineraries (saved itineraries and unsaved AI-generated itineraries)
- Events - it's possible events get updated behind the scenes, so maybe we can give events an expiration date in the cache to force it to update them once in a while
- Messages
- Chat sessions
Data that should NOT be cached:
- Public itineraries - you can't know when it's been updated in the db
Description
It's expensive to make network requests to fetch data every time. We should take advantage of the browser cache to store messages, events, itineraries, and all relevant data to minimize network requests.
Acceptance Criteria
Developer Notes
Data that should be cached:
Data that should NOT be cached: