Framework7 Ajax request caching ignoring query‑string variations
0 reputation · 21 Jul 2022, 10:52 UTC
Goal: ensure that cached Ajax responses differ when request URL includes different query strings or when relevant HTTP headers change, so that UI reflects up-to-date data.
Uncertainty: default cache key uses only the base URL string, ignoring query string and headers; developers can supply a custom cacheKey function, but it is unclear whether this can be applied globally for all app.request.get calls or must be passed per request, and whether Framework7 provides a built‑in option to automatically incorporate query string or header values into the cache key.
Can a custom cacheKey function be set globally for all app.request.get calls, or must it be supplied individually per request?
Does Framework7 offer a configuration option to include query‑string parameters or specific response headers in the default cache key composition?