SitePoint Sponsor

User Tag List

Results 1 to 8 of 8

Thread: css caching

  1. #1
    SitePoint Zealot theslip's Avatar
    Join Date
    Jun 2008
    Location
    here
    Posts
    122
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question css caching

    hi guys with 2 style sheets I have all the same styles and div names but they differ in properties. I've called the style sheet different name, I assume I wont get a cache issue even on same website. 1 page has 1 sheet another has the other? any clues you clever lot?

  2. #2
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,350
    Mentioned
    179 Post(s)
    Tagged
    6 Thread(s)
    Hi,

    If your stylesheet has a different name then there is no danger of the page calling the wrong stylesheet or indeed using a rule from a stylesheet not linked to (or designated by the UA or user).

    Indeed there may be loads of stylesheets on your cache and many will have the exact same rules but they will never be called unless you ask for them by name.

    Is that what you meant

  3. #3
    SitePoint Zealot theslip's Avatar
    Join Date
    Jun 2008
    Location
    here
    Posts
    122
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    sure was, big thanks

  4. #4
    SitePoint Zealot theslip's Avatar
    Join Date
    Jun 2008
    Location
    here
    Posts
    122
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    kind of related, being cache and all, if I wanted to update images but not change names, how could I go about that without a cache issue? any ideas? could I do it by changing directory name? cheers Paul, your the man!

  5. #5
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,582
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Yes using a different directory name will cal for a different file (technically) and thus no cache issue (I think).
    Twitter-@Ryan_Reese09
    http://www.ryanreese.us -Always looking for web design/development work

  6. #6

  7. #7
    SitePoint Guru Luki_be's Avatar
    Join Date
    Jun 2008
    Location
    Brazil, Minas Gerais. But i'm from Belgium.
    Posts
    867
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here's also usefull info.
    SitePoint Guru
    Sitepoint - the ultimate Css well
    As a computer, I find your faith in technology amusing.
    Sitepoint reference, your friend in need

  8. #8
    SitePoint Zealot theslip's Avatar
    Join Date
    Jun 2008
    Location
    here
    Posts
    122
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    cheers guys you've all been big help


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
  •