Caching problems with CSS @import

Posted on 2004-10-27
Last Modified: 2012-06-27
Ive got a style sheet, global.css, that sits at the top of every page in my site.  The global.css only has imports to other 2 other css files (images and buttons).  My question is:  would all 3 css files be cached upon the first visit to my site or would only the global.css file be cached and the other 2 files requested each and every time?
Question by:soBC
    LVL 10

    Accepted Solution

    all files should be cached unless you specifically instruct the browser NOT to cache them.


    Author Comment

    Thanks.  One question:  when you say "instruct" are you refering to code in the header of the incoming document, or a setting in the Options of the client's browser?
    LVL 53

    Assisted Solution

    The client browser settings have the final word caching.  You cannot force caching.

    LVL 10

    Expert Comment


    already printed and on the wall!
    LVL 53

    Expert Comment

    Glad we could help.  Thanks for the A .  :^)


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Suggested Solutions

    The first time you look at a web page and its source code, you are probably a little intimidated by the use of symbols and jargon that really looks foreign to you. You might not even know where to start to begin learning what it all means. That’…
    Uploading files to the web server has become common part of almost any kind of web application. People use different technologies to solve this, but regardless of the technology used, it is always useful to have some kind of progress indicator shown…
    This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
    The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

    856 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

    16 Experts available now in Live!

    Get 1:1 Help Now