So How Do You Set The Last-Modified Header? Round II
Posted by: AspNetResources.com articles, news and updates,
on 03 Jan 2008 |
View original | Bookmarked: 0 time(s)
Right went I thought I was done messing with the HttpCachePolicy class and the Last-Modified / If-Modified-Since headers, I ran into another fun issue.
Suppose you want contents of a file cached on the client. The idea is to set the Last-Modified HTTP header, as described in the previous post. The browser will then send an If-Modified-Since header the next time this file is requested. You compare the two dates, and if they are one and the same, you send a 403
(“Not Modified”) status...