Leverage browser caching for images in mvc using c#
-
0 down vote favorite I am using clientCache in my web.config: and in the controller on action I am using the OutputCache attribute: [OutputCache(Duration = 300)] // 300 for 5 mins The problem is I am getting the error in google speed insight thanks in advance
-
0 down vote favorite I am using clientCache in my web.config: and in the controller on action I am using the OutputCache attribute: [OutputCache(Duration = 300)] // 300 for 5 mins The problem is I am getting the error in google speed insight thanks in advance
Your question wasn't entirely clear when you posted it on StackOverflow: .net - Leverage browser caching for images in mvc using c# - Stack Overflow[^] It's even less clear here, because you didn't link to the screen-shot or tell us what the error is. As Dávid Molnár said in the StackOverflow comments, you need to update your question to show how the images are being generated, and the HTTP response headers for the image request. You can use the browser's developer tools, or an external tool like Fiddler[^], to see the headers.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer