HTTP headers: Last-Modified - how can it mimimize server load?
- by gotts
Imagine the following use case:
I use an AJAX request for getting some info about Item and use this URL: http://domain/items/show/1
In my database all items have a field called modified_at where we store the moment when this item was previously modified.
How can Last-Modified server HTTP header in response can minimize load/reduce requests/increase responsiveness if we need to process this request every time on the server side? It looks like we don't reduce the number of HTTP requests with that response and we don't reduce the load on server.
Who needs this anyway?