I'm just diving into web developent, my current passion is Express (Node.js).
I've noticed then i often recieve
HTTP/1.1 304 Not Modified either for static content and (!) for my json API requests (when data is still the same, so this is actually correct). But my node console log shows that SQL querys are executed every time API requested.
It seems like requests from my front-end are cached, but the cache does not actually prevent my back-end from executing redundant SQL querys. Hmmm...
Can anyone shed some light onto what is actually going on here?