Open nicklela opened 2 years ago
This is the design to make sure that BIOS always use latest context
Enhancement:
Note: OpenBMC has no ETag implementation: https://lore.kernel.org/all/6fd6fe09-7fb9-43c7-591b-fee5ed94c20c@linux.vnet.ibm.com/T/
We previously supported etag for static resources, hence the
references to them. They were removed when I moved phosphor-webui to webpack builds, and it was always on my list to add them back, using webpacks hashing mechanisms, but I never got a chance.
In practice, they didn't provide that much utility because most browsers:
- only cache if you have a valid SSL certificate.
- Have a very limited cache size.
- Don't support cross site etag caches.
So in practice, the cache didn't provide any benefit in a majority of cases.
In terms of supporting etags on non-static resources, that's quite complex, given that cache invalidation is difficult, and likely deserves its own design document.
Another solution is on BMC side:
http://redfish.dmtf.org/schemas/DSP0266_1.6.1.html