Closed AnttiRumpunen closed 1 month ago
Implemented most of suggested optimizations in PR https://github.com/fmidev/weather-app/pull/621
Warning data updates and app startup time could be further optimized by adding version number to DynamicConfig #620
Didn't implement or change these:
Cache-Control: no-cache
header, but didn't implement Maybe set to public + max-age=X, where X depends on queried parameter
. Server should control cache times, not the app.WMS observation -queries have Accept-Encoding: gzip
, these headers are sent by native map libraries (Google Maps, Apple Maps) and can't change those.WMS forecast -queries have ETAG. Timeseries doesn't, why?
Both should have ETAG according to my tests if the same query has been done before. But of course the first query is without ETAG.
In 4.1.0 app executed timeseries, autocomplete, warnings -queries which can be optimised in the following way. Idea is to get more hits to cache and remove obsolete queries.
Startup (weather page opens)
Locate self
Opening saved/previous location
Searching location
Selected searched location
Opening map page (time series -layer is selected)
Opening Weather page
Notes from heiskanen: