Leverage browser caching in a Windows 2003 shared hosting

Posted on 2011-04-23
Last Modified: 2012-06-21
Some of sites are on shared hosting (Windows 2003 Server), so I have no way to access server configuration.
I read everywhere about leverage browser caching, expecially for static files (jpg, css, js, etc.) but... how to do this in my case?
The hosting has .NET installed, could a web.config file help in some way? If yes, how?

Thanks in advance for the answers
Question by:ivanhalen
    1 Comment
    LVL 82

    Accepted Solution

    No, the browser never sees 'web.config'.  Browsing caching is controlled by the user and the browser.  Unless it is turned off, browsers will automatically cache files.  When they request a page that is in their cache, they issue a conditional GET request that includes an expiration date.  If the page or file on the server has not been modified, it sends back a "304 Not Modified" response and the browser uses the page in it's cache.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
    What is an ISAPI filter?   •      It's an assembly (.dll file) that can add or change the way IIS works.   •      They can be enabled globally for your web server or on a site-by-site basis.   When the IIS server receives a request, enabling the ISAPI fi…
    This video discusses moving either the default database or any database to a new volume.
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now