SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: CSS caching by browsers
-
Sep 17, 2006, 21:30 #1
- 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.
-
Sep 17, 2006, 21:37 #2
- 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.
-
Sep 17, 2006, 21:53 #3
- Join Date
- Sep 2005
- Location
- Tanzania
- Posts
- 4,662
- Mentioned
- 2 Post(s)
- Tagged
- 0 Thread(s)
Cool, thanks.
Bookmarks