(newbie) How to avoid proxy caching of my applet

This is a discussion on (newbie) How to avoid proxy caching of my applet within the Linux Web Servers forums, part of the Web Server and Related Forums category; I am using the OBJECT tag to deliver a java applet to the client browser. My problem is that I ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-28-2003
Dave
 
Posts: n/a
Default (newbie) How to avoid proxy caching of my applet

I am using the OBJECT tag to deliver a java applet to the client
browser. My problem is that I have a customer that uses a Squid proxy
server, and I have found that when I update my applet on the Apache
web server, the old applet remains cached in the Squid proxy for some
time (days). I am generally familiar with the HTTP headers such as
Expires that, if sent with my response, would probably prevent the
proxy from caching the applet, however I don't know how I can control
the generation of those headers in Apache for an applet delivered via
the OBJECT tag. I don't see an attribute of the OBJECT tag I can set,
is there some other Apache configuration setting that could be used to
have apache generate an Expires header for this applet, or for all
OBJECT tag content ?
  #2 (permalink)  
Old 10-28-2003
Maxim A Belushkin
 
Posts: n/a
Default Re: (newbie) How to avoid proxy caching of my applet

Headers come before any single tag is sent. They can not ever be
controlled through HTML tags - either scripting before them (PHP and Perl
can both help out here), or try to see if Apache can be told to send a
certain set of headers in advance for every document it serves (not sure on
this one, but it's very probably possible - check out Apache docs)

Dave wrote:

> I am using the OBJECT tag to deliver a java applet to the client
> browser. My problem is that I have a customer that uses a Squid proxy
> server, and I have found that when I update my applet on the Apache
> web server, the old applet remains cached in the Squid proxy for some
> time (days). I am generally familiar with the HTTP headers such as
> Expires that, if sent with my response, would probably prevent the
> proxy from caching the applet, however I don't know how I can control
> the generation of those headers in Apache for an applet delivered via
> the OBJECT tag. I don't see an attribute of the OBJECT tag I can set,
> is there some other Apache configuration setting that could be used to
> have apache generate an Expires header for this applet, or for all
> OBJECT tag content ?


  #3 (permalink)  
Old 10-28-2003
Alan J. Flavell
 
Posts: n/a
Default Re: (newbie) How to avoid proxy caching of my applet

On Tue, 28 Oct 2003, Dave wrote:

> I am generally familiar with the HTTP headers such as
> Expires that, if sent with my response, would probably prevent the
> proxy from caching the applet, however I don't know how I can control
> the generation of those headers in Apache for an applet delivered via
> the OBJECT tag.


I'd have to ask you to adjust your mental picture. Cacheability
of a resource depends on what the _server_ says about the resource
when it serves it out, and the server doesn't care in the least
whether the client agent retrieved the resource as the result of an
<a href...>, <img src...,>, <object...>, or whatever.

I definitely recommend the tutorial that you can find at
http://www.mnot.net/cache_docs/ (and the same author's cacheability
engine to test your own URLs).

> I don't see an attribute of the OBJECT tag I can set,


Because it's not involved in deciding cacheability.

> is there some other Apache configuration setting that could be used to
> have apache generate an Expires header for this applet,


Yes, several. That tutorial should give you reasonable pointers.

> or for all OBJECT tag content ?


No, the server settings apply to the content itself (in this case the
actual applet file), not to the means by which the client retrieves
it (the "object tag").

From the server side, once the object is cached (in client or
intermediate proxy) it it cached. There's nothing further that you
can do, directly, from the server side, to convince an intermediate
proxy to refresh itself. When it is good and ready, it will take a
look, and then it will see the new resource at the server and fetch
it. Until then, the only possible source of influence is from the
client side (a command-reload to punch through the proxy).

So it may be useful to try educating your users in the use of their
browsers, in addition to taking some measures to invite the proxy
to check more often than it would normally do.

hope this helps

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:57 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0