Re: setting If-Modified-Since programmatically
Karl Seguin [MVP] wrote:
If it's an ASP.NET page, you might be able to play with Response.AddHeader -
though I'm not sure if IIS will overwrite the value. If IIS does overwrite
the value OR you want to control the last-modified for an non-aspx.net file,
you're likely stuck with having to write an ISAPI filter. With IIS 7, you'll
be able to write those in .NET (yay).
Karl,
Thank you! I have been a windows developer for many moons now. I have
tabled in web programming, but.. Well, it is a very different world;)
Question: now do I confirm the code is working? Here is what I have
and I am not seeing anything different in the generated HTML:
FileInfo fi = new FileInfo(this.Request.PhysicalPath);
this.Response.AddHeader("If-Modified-Since",
fi.LastWriteTimeUtc.ToString("r"));
Sam
.
Relevant Pages
- Re: Cannot overwrite file using IIS FTP v6.0?
... file to the server and never looked for a log in IIS ... All moot now as I have uninstalled the FTP Service and have installed ... immediate overwrite will cause the error. ... The application finds the folder with no problem & uploads the file. ... (microsoft.public.inetserver.iis.ftp) - Re: Delete or Overwrite files not allowed
... overwrite or delete any files? ... if not what's the error msgs? ... > I have setup a FTP site on IIS 6 and Win2003. ... > Are there any other settings appart from in IIS or the actual root folder ... (microsoft.public.inetserver.iis.ftp) - Re: Overwrite Existing files off
... I had to restart the IIS, ... >> configured for each SPS template folder ie SPSTOC, SPS, SPSNEWS... ... >>> Overwrite existing files. ... (microsoft.public.sharepoint.portalserver) - Re: Cannot overwrite file using IIS FTP v6.0?
... Yes, overwrite is allowed. ... it could be relate to IIS caching. ... disable caching as the parameter affect entire IIS and not just FTP. ... Does the IIS FTP Service allow a file to be overwritten? ... (microsoft.public.inetserver.iis.ftp) - Re: Automate Connection Access
... control on a plain SMTP 6.0 service? ... Anyway, IIS exposes the Connection Control list via the Metabase property `IPSecurity.` Unlike many other props, even with direct Metabase editing enabled, though, you can't easily automate the editing of metabase.xml for this property, because it is of the binary data type IPSECLIST rather than plain-text. ... but you don't need to know that, because IIS handily serves up the property via ADSI scripting without you having to do any binary encoding yourself. ... With ADSI and the IIS namespace, you can append to the current array of denied IPs, re-put the options into IIS, and the settings take effect immediately. ... (microsoft.public.inetserver.iis.smtp_nntp) |
|