Caching ASHX Image Response

后端 未结 1 1302
时光说笑
时光说笑 2021-01-06 04:38

I have created an ashx file to generate image thumbnails on the fly. I would like to cache these images client side after they are called the first time.

URL:

<
相关标签:
1条回答
  • 2021-01-06 05:16

    Surely this line:

    HttpContext.Current.Response.Cache.SetCacheability(HttpCacheability.Server);
    

    Should be:

    HttpContext.Current.Response.Cache.SetCacheability(HttpCacheability.Public);
    
    0 讨论(0)
提交回复
热议问题