HTTP headers: Last-Modified - how can it mimimize server load?

Posted by gotts on Stack Overflow See other posts from Stack Overflow or by gotts
Published on 2010-05-30T09:27:54Z Indexed on 2010/05/30 9:32 UTC
Read the original article Hit count: 237

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?

© Stack Overflow or respective owner

Related posts about best-practices

Related posts about web-development