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

G

greylin

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top