I have a web page for which I want to implement if-modified-since algorithm to minimize server and network load but it seems I have a big problem getting the last-modified header to get sent to the client.
Up to now, I've tried using response.cache.setLastModified([myDate]) and also response.appendHeader("last-modified", [mydate]) but in both cases, monitoring the network (wireshark or Fiddler) has proven the header to not appear.
By looking at the FW code with Reflector, I found that this may be related to the cacheability of the page which seems to be by default (in this application) equal to no-cache. So I tried setting it back to private with no success (which seems to be normal according to SetCacheability code).
So I'm now trying to find out why is my page starting with no-cache instead of public or private... As far as I went now, this could have something to do with System.Web.UI.PageInitOutputCache which sets this. Anyone has any suggestion?
Up to now, I've tried using response.cache.setLastModified([myDate]) and also response.appendHeader("last-modified", [mydate]) but in both cases, monitoring the network (wireshark or Fiddler) has proven the header to not appear.
By looking at the FW code with Reflector, I found that this may be related to the cacheability of the page which seems to be by default (in this application) equal to no-cache. So I tried setting it back to private with no success (which seems to be normal according to SetCacheability code).
So I'm now trying to find out why is my page starting with no-cache instead of public or private... As far as I went now, this could have something to do with System.Web.UI.PageInitOutputCache which sets this. Anyone has any suggestion?