I've come to realise that I know very little about caching.
I recently downloaded the Node JS Connect ST middleware module, but am at a loss for ideas on how to use the caching features. I think that's partly due to my ignorance about how both client and server side http caching works.
In an ideal world, I'd like to:
I thought I'd be able to use etag headers or the 'if-last-modified' header to effect this process. Unfortunately, it doesn't work like this in practice, as the average browser appears not to relinquish it's cache after the initial visit. To force it to behave as expected, I've read that I'd need to:
If this is the case, what is the point of the "etag" and "if-last-modified headers'? Is there any way to utilise them to invalid the browser cache?
And another question, more specific to the ST module... How should I go about serving the markup without caching, but the assets with caching? Will I need to create two ST Cache objects for each set of files/folders?