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
Currently on each store visit GET /navigation/mobile/index/?cache_key=... request is done from the client which returns HTTP 200.
Since it already includes cache key, why don't we make it return 304, so it can be cached forever on the client, to make its' response even faster?
However, we would need to add "template generation timestamp" to the MageSuite\Navigation\Block\Navigation.getCacheKeyInfo(), which could be cached between requests in in-memory cache (redis), so that the cache key is changed when bin/magento cache:clean is done (e.g. after categories tree is changed).
WDYT? Would u accept PR for that?
The text was updated successfully, but these errors were encountered:
Currently on each store visit
GET /navigation/mobile/index/?cache_key=...
request is done from the client which returns HTTP 200.Since it already includes cache key, why don't we make it return 304, so it can be cached forever on the client, to make its' response even faster?
However, we would need to add "template generation timestamp" to the
MageSuite\Navigation\Block\Navigation.getCacheKeyInfo()
, which could be cached between requests in in-memory cache (redis), so that the cache key is changed whenbin/magento cache:clean
is done (e.g. after categories tree is changed).WDYT? Would u accept PR for that?
The text was updated successfully, but these errors were encountered: