Trying to get IIS5.0 on Windows 2000 Professsional Workstation and Windows
2000 Advanced Server to set custom HTTP Header "Cache-Control: no-cache" for
a virtual directory. My "Content Expiration" was not ticked because I may
need to view Office documents (see
)
However, what I noticed is that regardless of whether I add custom HTTP
Header and regardless of whether content-expiration is
1) ticked and set to "Expire Immediately" or
2) not ticked
NO HTTP headers whatsover (i.e. not even the Content-Length, Content-Type,
Date) are returned to the server (I check this by doing a telnet to the Web
server and doing a GET operation on the file concerned).
Strangely, if I try to do something invalid (e.g. trying to do GET
/DirWithNoBrowsePermission) then I get back an HTTP Header like the
following, together with a standard Microsoft Error page.
How could I get IIS5.0 to return HTTP headers?? I can't find any settings
that would do this!!
2000 Advanced Server to set custom HTTP Header "Cache-Control: no-cache" for
a virtual directory. My "Content Expiration" was not ticked because I may
need to view Office documents (see
)
However, what I noticed is that regardless of whether I add custom HTTP
Header and regardless of whether content-expiration is
1) ticked and set to "Expire Immediately" or
2) not ticked
NO HTTP headers whatsover (i.e. not even the Content-Length, Content-Type,
Date) are returned to the server (I check this by doing a telnet to the Web
server and doing a GET operation on the file concerned).
Strangely, if I try to do something invalid (e.g. trying to do GET
/DirWithNoBrowsePermission) then I get back an HTTP Header like the
following, together with a standard Microsoft Error page.
Code:
HTTP/1.1 403 Access Forbidden
Server: Microsoft-IIS/5.0
Date: Mon, 21 Oct 2002 14:31:13 GMT
Content-Length: 4214
Content-Type: text/html
that would do this!!