You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
Currently, the requests we issue to obtain data via HTTP first get an (optional) response served from the cache, no matter whether the data in the cache was expired. They also (optionally) get a second response with data that is always fresh. Instead of having two responses per request, we should always exactly return one response and change the behavior so that the first request is always served from cache (if possible). When the client got a stale resource, it should make a second request with appropriate headers that force a non-stale response.
The text was updated successfully, but these errors were encountered:
We're currently outsourcing the retry logic into the HTTP source. However, for #123 to work, we need to make the decision of whether to attempt to verify data freshness directly inside the renderer. I'm envisioning this order of attempting to load resources:
This would mean that we'll need closer control over the order these requests happen in.
In particular, cache lookups and HTTP requests need to be decoupled so that we can first do a cache lookup, and once the tile becomes an ideal tile (through zooming), we'll want to go the second step and ensure freshness.
Currently, the requests we issue to obtain data via HTTP first get an (optional) response served from the cache, no matter whether the data in the cache was expired. They also (optionally) get a second response with data that is always fresh. Instead of having two responses per request, we should always exactly return one response and change the behavior so that the first request is always served from cache (if possible). When the client got a stale resource, it should make a second request with appropriate headers that force a non-stale response.
The text was updated successfully, but these errors were encountered: