Disabling Caching

Disabling Caching

Post by Joseph C. Kope » Tue, 24 Oct 2000 09:59:46



I have a page that does not itself change over time, though an image
embedded in it changes frequently and should be displayed in a timely
fashion.  I am wondering what the most effective means of ensuring that
caching occurs on the client and/or proxy side, without requiring that
clients affirmatively set their preferences to "check each time".  I
have tried META Pragma/no-cache and setting headers for
Cache-Control/no-cache, but am not sure this works.  I would appreciate
any thoughts.  Thanks.
 
 
 

Disabling Caching

Post by Joshua Sliv » Tue, 24 Oct 2000 10:35:15



Quote:> I have a page that does not itself change over time, though an image
> embedded in it changes frequently and should be displayed in a timely
> fashion.  I am wondering what the most effective means of ensuring that
> caching occurs on the client and/or proxy side, without requiring that
> clients affirmatively set their preferences to "check each time".  I
> have tried META Pragma/no-cache and setting headers for
> Cache-Control/no-cache, but am not sure this works.  I would appreciate
> any thoughts.  Thanks.

You should be setting the HTTP headers on the image itself, not on
the HTML page.  If you are using apache, this can be accomplished
with mod_expires, and mod_headers.

--
Joshua Slive

http://finance.commerce.ubc.ca/~slive/

 
 
 

Disabling Caching

Post by Joseph C. Kope » Tue, 24 Oct 2000 11:06:26


Any suggestions as to how I would do this in Tomcat?  I would anticipate
this involves sending an HttpServletResponse.setHeader(name, value),
where "name" is HTTP parameter and "value" is its value.  Any
suggestions would be much appreciated.

> You should be setting the HTTP headers on the image itself, not on
> the HTML page.  If you are using apache, this can be accomplished
> with mod_expires, and mod_headers.

 
 
 

1. disable cache, change text modes, dynamic redirection

1) Is there a way to disable read/write cacheing, so I can turn off the
computer whenever I want to without waiting?

2) I've seen several posts asking how to change text modes in linux, but
no responses. Can someone please post a response?

3) Is there a way to change the redirection of a running process? In
other words, if I do

$ yes > /dev/null

can I break that redirection and send it either to another file or back
to the console? I know the answer is probably no, or we wouldn't have
things like iScreen. But if it isn't possible, why isn't it?

Thanks

Zack

2. QMS1660E printer and AIX

3. Disabling cache

4. Mount 2nd drive

5. How can I disable cache on sparc?

6. Cyrillic fonts?

7. how to disable cache

8. Dialup Printer Configuration wanted

9. Disable Cache

10. How do I disable cache?

11. Pragma "no-cache" and Cache-Control "no-cache"

12. disabling nscd host cache not a good workaround for DNS problems

13. why must i disable external cache