Quantcast
Channel: Web Forms
Viewing all articles
Browse latest Browse all 23244

Incorrect Date field in HTTP response header in IIS Express

$
0
0

Hi,

I'm using Windows 8 Enterprise, Visual Studio 2012 Update 3, and IIS Express 8.

Now let's change the system datetime to a future date, for example, change it to Sep 9, 2014.
Then we create an asp.net web application in visual studio, and add a page Default.aspx.
When requesting Default.aspx, we can find that the Date field in the response header is Sep 9, 2014.

So far so good.

Then we change the system time back to Sep 9, 2013, and request Default.aspx again.
Then we can see that the Date field in the response header is still Sep 9, 2014.

With this issue, if I add a cookie in my code with expired time set to a date before Sep 9, 2014. The cookie won't be set in Chrome/Firefox because of the incorrect Date field in the http response header.

Is this a bug of IIS Express? Any ideas to avoid this? Thanks!


Viewing all articles
Browse latest Browse all 23244

Trending Articles