locked
Cache for images under HttpHandler RRS feed

  • Question

  • User1027374711 posted

    Hello,

    I need to make cache-control PUBLIC for my http handler (ashx) that processes images.

    Whenever I use this code I still get PRIVATE all the time:

    this.Context.Response.Cache.SetCacheability(System.Web.HttpCacheability.Public);
    this.Context.Response.CacheControl = HttpCacheability.Public.ToString();

    The same result from visual studio asp.net server and IIS.

    Any suggestion, please?

    Thank you

    Thursday, August 6, 2015 7:55 AM