Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

IIS ignores If-Modified-Since (1985) and sends 304

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Next:  can't download exe file after move to share  
Author Message
lweisberg

External


Since: Sep 07, 2004
Posts: 2



(Msg. 1) Posted: Wed Sep 08, 2004 12:59 am
Post subject: IIS ignores If-Modified-Since (1985) and sends 304
Archived from groups: microsoft>public>inetserver>iis (more info?)

I have an application which modifies certain browser requests as follows:
1) IE requests http://www.server.com/page.html (page.html is last modified
today, e.g.)
2) MyApp requests page.html from www.server.com, modifies content in such a
way that there is a pop-up in the returned page with a submit button. MyApp
also modifies the Last-Modified field to be some date in 1985
3) User presses push button, which calls myApp (basically a proxy) directly
4) my App returns a META refresh to go to page
http://www.server.com/page.html
5) IE issues a GET http://www.server.com/page.html and, indeed, sends a
header If-Modified-Since with a value exactly corresponding to the 1985 date
in the Last-Modified tag in step #2
6) MyApp sends the request with the same headers to www.server.com along
with the If-Modified-Since 1985.
7) IIS (the www.server.com is really my own PC running IIS) returns a 304,
rather than returning the content of page.html, even though page.html is
certainly newer than 1985.

Any ideas why? And what I might do (in the headers I send in Step #2) to
force IIS in the end to return the entire page and NOT a 304?

Thanks,
Larry

 >> Stay informed about: IIS ignores If-Modified-Since (1985) and sends 304 
Back to top
Login to vote
lweisberg

External


Since: Sep 07, 2004
Posts: 2



(Msg. 2) Posted: Wed Sep 08, 2004 2:35 pm
Post subject: Re: IIS ignores If-Modified-Since (1985) and sends 304 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I suppose I should have mentioned all the headers that were sent. It turns
out that the ETag was also bing sent and being used by IIS to decide of the
page was modified. Once I forced the ETag to not be sent in the first place,
IIS no longer responded with a 304.

"Larry Weisberg" <lweisberg RemoveThis @finjan.com> wrote in message
news:chl0g4$m9s$1@news2.netvision.net.il...
 > I have an application which modifies certain browser requests as follows:
 > 1) IE requests <a style='text-decoration: underline;' href="http://www.server.com/page.html" target="_blank">http://www.server.com/page.html</a> (page.html is last
modified
 > today, e.g.)
 > 2) MyApp requests page.html from <a style='text-decoration: underline;' href="http://www.server.com," target="_blank">www.server.com,</a> modifies content in such
a
 > way that there is a pop-up in the returned page with a submit button.
MyApp
 > also modifies the Last-Modified field to be some date in 1985
 > 3) User presses push button, which calls myApp (basically a proxy)
directly
 > 4) my App returns a META refresh to go to page
<font color=purple> > <a style='text-decoration: underline;' href="http://www.server.com/page.html</font" target="_blank">http://www.server.com/page.html</font</a>>
 > 5) IE issues a GET <a style='text-decoration: underline;' href="http://www.server.com/page.html" target="_blank">http://www.server.com/page.html</a> and, indeed, sends a
 > header If-Modified-Since with a value exactly corresponding to the 1985
date
 > in the Last-Modified tag in step #2
 > 6) MyApp sends the request with the same headers to <a style='text-decoration: underline;' href="http://www.server.com" target="_blank">www.server.com</a> along
 > with the If-Modified-Since 1985.
 > 7) IIS (the <a style='text-decoration: underline;' href="http://www.server.com" target="_blank">www.server.com</a> is really my own PC running IIS) returns a 304,
 > rather than returning the content of page.html, even though page.html is
 > certainly newer than 1985.
 >
 > Any ideas why? And what I might do (in the headers I send in Step #2) to
 > force IIS in the end to return the entire page and NOT a 304?
 >
 > Thanks,
 > Larry
 >
 ><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: IIS ignores If-Modified-Since (1985) and sends 304 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
IIS6 ignores CGI "system" calls - We have a CGI application (Perl) that has been running on IIS4 and IIS5 for quite some time, without problem We're now migrating it to IIS6 (Windows/2003). Some of the CGI programs (for good or bad), perform some various "system" and backtick...

ManagementObjectSearcher (WMI) ignores metabase keys with .. - I am trying to list all the AppRoots for a given site, using WMI like this: System.Collections.ArrayList alAppRoots = new System.Collections.ArrayList(); ManagementObjectSearcher searcher = new ManagementObjectSearcher(scope, new ObjectQuery ("SELE...

IIS sends an RST when in FIN_WAIT_2 - I have a TCP client which does a HTTP-POST to IIS 5.0 / 6.0. When the webserver completes sending data, it does an active close and moves into the FIN_WAIT_2. By this time, the client is still reading the data from the socket buffer. After a timeout,...

XP sends GET verb to server - why? - I have one machine (XPSP1a) that, on a regular basis, sends a GET verb to my other machine (web/ftp server, W2KSP3, IIS5.0). URLScan rejects it, of course, but what is going on? Is this some sort of WebDAV component on XP's part? IIRC, I switched off ...

IIS box sends unwanted e-mails - The problem is that our IIS box keeps sending a bunch of emails on a somewhat regular basis to customers. I have no idea why. At our web site, you can fill out a form, and thereby tip a friend about a product we have. An email is sent from the IIS to....
   Web Hosting Problem Solving Community! (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]