SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Zealot Ace Nova's Avatar
    Join Date
    Aug 2000
    Posts
    197
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is there Javascript that will make it so images like my logo and small things get cached and everything else, including the document, doesnt get cached?
    Ace Nova
    Football Man
    InternetSprite.Com - Coming Soon!

  2. #2
    SitePoint Zealot Ace Nova's Avatar
    Join Date
    Aug 2000
    Posts
    197
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Come on, someone must know this!
    Ace Nova
    Football Man
    InternetSprite.Com - Coming Soon!

  3. #3
    SitePoint Wizard
    Join Date
    Jul 1999
    Location
    Chicago
    Posts
    2,629
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    A Javascript won't do this for you. The browser, according to the HTTP RFC, is in charge is the caching. The server has no control beyond the http-equiv and pragma directives in HTML files and the headers respectively.

    It would take a bit of work but you could have the images sent normally and the document sent with Pragma: No-Cache. It's best to let the browser do this on its own though.


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
  •