I'm using OutPutCache
with the OutputCacheLocation.ServerAndClient
parameter in an action that always returns images to me; However, the browser always downloads the images (it does not save them in cache), if I use OutputCacheLocation.Client
it works perfectly but I need the cache to be on the server side and the client.
I do not understand what happens. This is my code:
[HttpGet]
[OutputCache(Duration = 43200,Location = OutputCacheLocation.ServerAndClient, VaryByParam = "*")]
public ActionResult GetImagenProducto(int id, int width = 800, int height = 800, int calidad = 90)
{