I’m engaged on a Drupal eight modules which ought to push a http response header based mostly on a worth saved in an entity or an inventory of entities.
The module was initially performed for D7 and now could be in porting as much as D8.
The principle downside is that through the use of the Entity Cache in D8 any hooks are bypassed, which had been working in nonetheless in D7. So nor hook_entity_load or hook_entity_view are fired however solely a single time earlier than the entity is positioned into the cache.
We would have to create an additional entity/node to an inventory and this could then finally change the pages html-head part and the http response header.
So is there any probability to get knowledgeable (by a hook or occasion) for ALL entities be proven on a web page (particulars or listing/teaser)? Or can we retailer some info to a “cached” web page (so a web page that was assembled solely out of cached entities) ?