-
Notifications
You must be signed in to change notification settings - Fork 21
Description
Describe the bug
The cache for time series data does not invalidate when the data within the request changes. Affects at least GET and POST /timeseries (though quite possibly other endpoints as well). Tested in 2026.01.23-develop.
Expected behavior
If I make a GET /timeseries request for data on Jan 5-7 and subsequently make a POST /timeseries request to add data on Jan 6, a subsequent GET /timeseries request for the same data should invalidate the cache and respond with current data.
To Reproduce
Steps to reproduce the behavior:
(Within a relatively short timeframe to avoid cache becoming stale, and assuming that specific cache-control headers are not included)
- Make a GET /timeseries request for a specific time window
- Make a POST /timeseries request to edit data for the same time series within the same time window
- Make the original GET /timeseries request again
- Note that the response has not changed from the original request
CDA Version (please complete the following information):
- Version 2026.01.23-develop
Additional context
When known to potentially cause issues, the cache can sometimes be disabled by including custom Cache-Control headers with the request. However, this can be unreliable due to headers being blocked by CORS settings in some environments (e.g. CWBI). The ideal solution would be to incorporate "smarter" cache handling.