Results 1 to 4 of 4

Thread: How do I clear cache of page JPG files?

  1. #1
    Join Date
    Feb 2006
    Posts
    236
    Thanks
    8
    Thanked 3 Times in 3 Posts

    Default How do I clear cache of page JPG files?

    Hi,

    I just found that I have a tiny annoying problem with image caching on a page:

    http://earth.engr.ccny.cuny.edu/noaa...inedmenu1.html

    that uses two large external javascript files. They are used for DD's Chained Menu Script found at
    http://www.dynamicdrive.com/dynamici...ainedmenu.html

    I modified it a little, added another DD script, and it all works just great together, however, even when I add the line

    <META http-equiv="cache-control" content="no-cache">

    all browsers appear to cache the referenced .jpg images anyway. The result is that when I update the menu tree in config0.js, the most recent image does not appear because the seed (starting) image has the same name as before the update.

    How can I prevent this image caching? Thanks.
    Last edited by Strangeplant; 06-12-2006 at 06:18 PM. Reason: Misleading Title

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Adjust your server settings.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Feb 2006
    Posts
    236
    Thanks
    8
    Thanked 3 Times in 3 Posts

    Default

    I read, searched, and then read some more. Please tell me what you mean. The images are in the user's computer cache.

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    To disable caching for a resource, the resource should be sent with the HTTP header "Cache-Control: no-cache". How one would accomplish this depends on one's webserver.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

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
  •