SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member frankieB's Avatar
    Join Date
    Jan 2003
    Location
    New Jersey
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    cached file on aol, can i use java script or something.

    on a clients site, i am gettign one file that seems to be cached by aol, and i can not seem to get aol to get the new file. he dials into aol strait, and there is no company sever to worry about. so the client sees the old file and gets on my case. just wondering, is there a way to maybe put something in the file header, to make aol get the new file? it has been about 4 days. all the other files that were changed worked out okay just one is not working. i have checked the browser and tried to clear the cache in ie, and still no luck. the client dials in, so there is no company server to worry about...

    suggestions?

  2. #2
    Web-coding NINJA! silver trophy beetle's Avatar
    Join Date
    Jul 2002
    Location
    Dallas, TX
    Posts
    2,900
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, but javascript cannot accomplish this. HTTP headers come from the server - javascript is client-side, being run after all headers have been sent.

    You'll need PHP, ASP, or similar to get this done.

    Example, my javascript bandwidth test uses PHP to serve the image, non-cached, so the page can be refreshed to run the test again w/o deleting the local cache.
    beetle a.k.a. Peter Bailey
    blogs: php | prophp | security | design | zen | software
    refs: dhtml | gecko | prototype | phpdocs | unicode | charsets
    tools: ide | ftp | regex | ffdev




  3. #3
    "Of" != "Have" bronze trophy Jeff Lange's Avatar
    Join Date
    Jan 2003
    Location
    Calgary, Canada
    Posts
    2,063
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you could use javascript to make the file random using a query string, not sure if this would be something you want to do, but it's an option.

    (I'd look into setting the headers on the server-side though)
    Who walks the stairs without a care
    It shoots so high in the sky.
    Bounce up and down just like a clown.
    Everyone knows its Slinky.


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
  •