Making a site in CSS -- but there is no image cache?

Discussion in 'CSS' started by itsall3, Feb 10, 2007.

  1. #1
    Alright guys!

    I'm making a site in css, its going good, except one thing...

    When a user goes to another page, such as the next page of games (it's a remake of my site in css).

    The whole damn thing refreshes, the whole page disapears and reloads. Background, header, everything.

    Any ideas what going on?

    Is there some option to make the image cache in CSS?

    Cheers
     
    itsall3, Feb 10, 2007 IP
  2. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Got a link?
     
    Dan Schulz, Feb 10, 2007 IP
  3. itsall3

    itsall3 Active Member

    Messages:
    505
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    58
    #3
    No sorry matey, i dont want to share yet ;)

    All i can really say is that everything refreshes on this new site i've made on css, but on my old site (with tables), the background, the header do not refresh.

    I guess i'll have to look into it more man, cheers.
     
    itsall3, Feb 10, 2007 IP
  4. MattD

    MattD Peon

    Messages:
    161
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Were you using frames or something before?

    Browsers should cache all images if you are using CSS, unless you are using url('image') in your CSS? I think that if that is the case the browser will need to load and parse all CSS before downloading the image.
     
    MattD, Feb 11, 2007 IP
  5. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Actually, calling your images inside your stylesheet will still let the images be cached. When you <link> to the CSS file. If you @import it, then it won't be cached, because the browser will have to re-download the stylesheet each and every single time.
     
    Dan Schulz, Feb 11, 2007 IP
  6. MattD

    MattD Peon

    Messages:
    161
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Sorry yeah I meant to say they'd be cached, but maybe not loaded immediately because the browser would need to parse the CSS first.
     
    MattD, Feb 11, 2007 IP