Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9183147
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T18:43:58+00:00 2026-06-17T18:43:58+00:00

How to set Leverage browser caching at ASP.net IIS 7.0 Setting an expiry date

  • 0

How to set Leverage browser caching at ASP.net IIS 7.0
Setting an expiry date or a maximum age in the HTTP headers and for pictures in web.config file

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T18:44:00+00:00Added an answer on June 17, 2026 at 6:44 pm

    For ASP.net, in the global.asax file, in the Application_PreRequestHandlerExecute function call Response.Cache.SetExpires and Response.Cache.SetMaxAge methods.
    For pictures or static content, in IIS 7 web.config use

    <staticContent>
        <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="7.00:00:00" />
    </staticContent>
    

    replacing 7 days with desired duration.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Varnish 3.0.3 and to use it to leverage browser caching by
I ran Page Speed Insight on my site and Leverage Browser Caching keeps coming
I'm tyring to implement browser caching and follow Google PageSpeed's recommendation about setting Last-Modified
I'm new to lambda expressions and looking to leverage the syntax to set the
@tools.pingdom.com I get a warning in leverage cache-control because of these resources: http://code.jquery.com/jquery-1.6.2.min.js http://www.google-analytics.com/ga.js
I'm using ASP.NET MVC 3, with Raven DB as a backing data store. I
After running a google Speed Test, one of the items is to Leverage Browser
Is there any way to leverage the DNN components for creating users and setting
ASP.NET MVC allows users the ability to assign permissions to functionality (i.e. Actions) at
I'm working on an ASP.NET MVC 4 app. This app leverages bundling to improve

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.