Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Leverage browser caching for images in mvc using c#

Leverage browser caching for images in mvc using c#

Scheduled Pinned Locked Moved C#
helpcsharpasp-netarchitectureperformance
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 10832272
    wrote on last edited by
    #1

    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

    Richard DeemingR 1 Reply Last reply
    0
    • U User 10832272

      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

      Richard DeemingR Offline
      Richard DeemingR Offline
      Richard Deeming
      wrote on last edited by
      #2

      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

      "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups