Force Page Caching

Discussion in 'HTML & Website Design' started by Jeehan, Dec 19, 2008.

  1. #1
    How can i make a page that gets autometicaly chached by browsers after first time load. Page background and images are driven by CSS. Browsers always refreshing the page but not caching. How to force caching?? Please help.
     
    Jeehan, Dec 19, 2008 IP
  2. the-hungry-hamster

    the-hungry-hamster Peon

    Messages:
    59
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    the-hungry-hamster, Dec 19, 2008 IP
  3. jatazoulja

    jatazoulja Peon

    Messages:
    82
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    This is a very good technique, and I've been using it for quite sometimes now...
    the best way is to put it at the top... this is also a great replacement/alternative for image or any document preloader

    
    <div style="display:none;">
    <put a bunch of image here...>
    </div> 
    
    Code (markup):
    cheers! :D
     
    jatazoulja, Dec 19, 2008 IP
  4. innovati

    innovati Peon

    Messages:
    948
    Likes Received:
    63
    Best Answers:
    1
    Trophy Points:
    0
    #4
    well, considering your site might be viewed by any number of browsers, on any number of platforms I'd say that there's no reliable way to for anything. What happens if I load your site up in something like Lynx?

    What reason do you have for desiring to force page caching - maybe there's another wiser solution to your problem.

    Example on why it wouldn't work, my friend is paranoid and everytime she closes firefox, her history, cache and passwords are deleted. Every single time she closes a window.
     
    innovati, Dec 20, 2008 IP
  5. Jeehan

    Jeehan Well-Known Member

    Messages:
    1,578
    Likes Received:
    31
    Best Answers:
    1
    Trophy Points:
    115
    #5
    thank you all. i will try to do it. But any direct solution?
     
    Jeehan, Dec 20, 2008 IP
  6. innovati

    innovati Peon

    Messages:
    948
    Likes Received:
    63
    Best Answers:
    1
    Trophy Points:
    0
    #6
    What is it you hope to solve by forcing page caching?

    I don't think there is a reliable way to force page caching in all browsers on all platforms, but there might be a better solution to the problem besides page caching at all.

    What is the problem you believe forced page caching will solve?
     
    innovati, Dec 20, 2008 IP