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
  1. Home
  2. Web Development
  3. ASP.NET
  4. Set Expiry date to images

Set Expiry date to images

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netquestion
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.
  • R Offline
    R Offline
    R Senthil Kumaran
    wrote on last edited by
    #1

    Hi Techies, Any body has worked in setting the expiry date ot the images that u use in the asp.net pages? please give me some suggestions Senthil Loving Code, R. Senthil Kumaran

    M 1 Reply Last reply
    0
    • R R Senthil Kumaran

      Hi Techies, Any body has worked in setting the expiry date ot the images that u use in the asp.net pages? please give me some suggestions Senthil Loving Code, R. Senthil Kumaran

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      Hi there, If you want to set the expiration date for an image, you can do that in the IIS snap-in. Right click on the image to open the Properties dialog box, on the HTTP Headers tab, you select the Enable Content Expiration checkbox. Now you can set the expiration date for the file. You can also apply this way for setting the web site contents such as directories or files. In addition, you can use the Cache-Control header to achieve that thing. For more information, you can see these documents: http://support.microsoft.com/kb/247404/EN-US/[^] http://www.aspnetresources.com/blog/cache_control_extensions.aspx[^]

      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