Closed Riscky closed 3 years ago
This is fixed in a PR in sadserver. However, pictures are not the only culprit. The complete product page is rendered every time someone puts their card on the reader. One should cache the product page and refresh it once a day/ on startup / one pressing a button etc.
svsticky/sadserver/pull/332 has been merged, which should fix the picture caching issue. There is already an issue to discuss caching the products (#32)
Product pictures are fetched every times Mongoose loads, which is slow and error-prone. Caching pictures locally would solve this. I think pictures have an unique ID / path, so there should not be any gotcha's. This might need to be fixed server-side by setting some headers, but I'm not sure