Why does HTTP headers doesn't get created when I use Server.Transfer()?
问题 I'm using an .aspx page to serve an image file from the file system according to the given parameters. Server.Transfer(imageFilePath); When this code runs, the image is served, but no Last-Modified HTTP Header is created. as opposed to that same file, being called directly from the URL on the same Server. Therefor the browser doesn't issue an If-Modified-Since and doesn't cache the response. Is there a way to make the server create the HTTP Headers like normally does with a direct request of