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 548555
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T11:05:29+00:00 2026-05-13T11:05:29+00:00

I am developing a website in ASP.NET and I am using various javascript frameworks/libraries.

  • 0

I am developing a website in ASP.NET and I am using various javascript frameworks/libraries. The different files belonging to these frameworks/libraries rarely changes thus there is no reason to refresh those files once they have been sent to the client browser (atleast not everytime a page is served).

I see that the HttpContext object can be used somehow, that I can set the content expiration on the files/folders on the IIS, or maybe setup somekind of caching in the web.config file.

1. What is best practice/what approach should I take?

If the content expiration on the IIS works, then this is just great (and easy). But during development, I use the ASP.NET Development Server, which does not interact with the external IIS – thus no performance gain achieved during development 🙁

2. How can I use cache here (depending on question 1)?

I would like to modify this question to be used as a “this-is-how-its-done” thread for future reference for me and others.

  • 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-05-13T11:05:30+00:00Added an answer on May 13, 2026 at 11:05 am

    The cache settings in the HttpContext only control how the aspx page is cached, not the caching of files that the browser include (javascript, css, images…).

    The browser caches the javascript files by default, and that is pretty much the same regardless if you are running the site locally or live. Normally you have to make a Ctrl+F5 or purge the cache if you make changes in a script to get the browser to load the new version.

    So, you don’t have to do anything at all, the browswer already caches the files.

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

Sidebar

Ask A Question

Stats

  • Questions 269k
  • Answers 269k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer It doesn't look like it is passing the validation since… May 13, 2026 at 1:18 pm
  • Editorial Team
    Editorial Team added an answer com.rim.samples.docs namespace is common for samples BlackBerry Application Developer Guide.… May 13, 2026 at 1:18 pm
  • Editorial Team
    Editorial Team added an answer NSNumber is an object, not an integer. To insert an… May 13, 2026 at 1:18 pm

Related Questions

I have 4 forms (almost similar with few diference) to take customer service requests.
Okay, I know I'm doing something wrong - but can't figure out a better
I am developing a C# ASP.Net project. And I would like to do something
Consider the following scenario which I'm due to find myself in shortly: You're to
I am a newbie and developing a website using ASP .Net 2.0 with C#

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.