SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    I meant that to happen silver trophybronze trophy Raffles's Avatar
    Join Date
    Sep 2005
    Location
    Tanzania
    Posts
    4,662
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    CSS caching by browsers

    Hi, I was wondering about this but can't find any info on it.

    Do browsers cache stylesheets only when they are linked using <link>? Or will they cache CSS in <style> tags (including CSS imported using @import)? And what about inline styles?

    Cheers.

  2. #2
    SitePoint Wizard bronze trophy Tyssen's Avatar
    Join Date
    Oct 2005
    Location
    Brisbane, QLD
    Posts
    4,067
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If it's in an external file, whether you use link or style, it'll be cached. Inline and internal styles will only be cached with the page that they're written into. Once the page has been visited, it'll be in the cache too, but the internal or inline styles will only be available to that page.

  3. #3
    I meant that to happen silver trophybronze trophy Raffles's Avatar
    Join Date
    Sep 2005
    Location
    Tanzania
    Posts
    4,662
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Cool, thanks.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •