Prevent Browser Caching with HTTP headers, but allow images to becached

Discussion in 'HTML' started by greylin, May 16, 2008.

  1. greylin

    greylin Guest

    I have a situation where I want the browser to cache and re-use the
    icons it has already pulled down. But, I still want to tell the
    browser to re-request everything else such as .js, .css, and dynamic
    server-side pages.

    Is there a way to use Cache-Control, Pragma no-cache HTTP headers, and
    such to make the browser always re- request everything that does not
    end in .jpg|.gif|.png ... and so on. Or maybe by mime-type instead of
    by extension.

    Any ideas?

    Thanks in advance!
    D
    greylin, May 16, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. R. Ian Lee

    Prevent Browser Caching for a Page

    R. Ian Lee, Oct 22, 2003, in forum: ASP .Net
    Replies:
    3
    Views:
    8,328
    Jacob Yang [MSFT]
    Oct 23, 2003
  2. gu4y
    Replies:
    2
    Views:
    404
    Shiv Kumar
    Jan 20, 2004
  3. Werschinger
    Replies:
    0
    Views:
    628
    Werschinger
    Aug 13, 2008
  4. Werschinger
    Replies:
    0
    Views:
    1,174
    Werschinger
    Aug 13, 2008
  5. Ian
    Replies:
    2
    Views:
    1,944
Loading...

Share This Page