xbmc/xbmc — pull request #1366 by Montellese (2012-09-04 13:08:14+00:00)
Title: webserver: improved file caching

These commits contain some additional code to improve client-side caching of files exposed through xbmc's webserver. I have discussed these things with @da-anda at devcon. The changes are:

* raise the value of the "Expires" header to 1 year in the future (currently it's 1 day)
* provide the "Last-Modified" header for any "physical" file
* check for "If-Modified-Since" request header and return HTTP 304 "Not Modified" instead of the whole file

All these changes should speed up retrieval of files through xbmc's webserver, especially for webinterfaces that show a lot of images.