ASPX That Returns An Image - Output Cache-able?

前端 未结 3 1374
再見小時候
再見小時候 2021-02-09 18:57

Greetings!

I\'ve created an APSX web form that returns a remote image based on some supplied parameters. It can be used like this:



        
3条回答
  •  猫巷女王i
    2021-02-09 19:05

    Your problem could be a bug in IE - it can't cache if the Vary:* HTTP response header is used, but IIS returns it by default because it's in the HTTP 1.1 spec.

    Try adding the following to your web.config:

     
        
            
        
     
    

提交回复
热议问题