I don't agree. That eats bandwidth.

I just want the browser to get a new version now and again. Checking last modified date is ok, but a time-t0-live of, let's say, 1 hour, would be ok.

We are (have to be) behind an IIS in this case. Could anybody say for sure that it is IIS that is doing the caching? I have strong suspicions in that direction.

On 29 Sep 2005, at 23:55, Nebojsa Vasiljevic wrote:

Even beter is to include css in each JSP.
 
----- Original Message -----
From: Matt Blum
To: MyFaces Discussion
Sent: Thursday, September 29, 2005 11:38 PM
Subject: Re: css files cached

The way I've gotten around this problem before is by making the CSS files JSPs, just for the caching instructions.  All you need to do is put a content-type header set to "text/css" and a caching instruction, change the extension to ".jsp" (and therefore all references to it as well), and leave the rest of it alone.

-Matt

On 9/29/05, ir. ing. Jan Dockx <[EMAIL PROTECTED]> wrote: Probably not JSF related, but anyway:
My css files, served from the web app, seem to be cached indefinitely
somewhere. These are regular css files, so no place for JSP tags here.
Any idea how I can tell whatever cache in between to check the server
for a new version now and again? I'm seeing the issue both on Win/IE
and Mac/Safari. The css that is being used is at least a week old
(maybe months), until I manually open the css URL and do a hard
refresh. My users won't be doing this …


Met vriendelijke groeten,

Jan Dockx

PeopleWare NV - Head Office
Cdt.Weynsstraat 85
B-2660 Hoboken
Tel: +32 3 448.33.38
Fax: +32 3 448.32.66

PeopleWare NV - Branch Office Geel
Kleinhoefstraat 5
B-2440 Geel
Tel: +32 14 57.00.90
Fax: +32 14 58.13.25

http://www.peopleware.be/
http://www.mobileware.be/

<x-tad-smaller>Met vriendelijke groeten,

Jan Dockx
</x-tad-smaller><x-tad-smaller>
PeopleWare NV - Head Office</x-tad-smaller>
<x-tad-smaller>
Cdt.Weynsstraat 85
B-2660 Hoboken
Tel: +32 3 448.33.38
Fax: +32 3 448.32.66 </x-tad-smaller>
<x-tad-bigger>
</x-tad-bigger>
<x-tad-smaller>
PeopleWare NV - Branch Office Geel</x-tad-smaller>
<x-tad-smaller>
Kleinhoefstraat 5
B-2440 Geel
Tel: +32 14 57.00.90
Fax: +32 14 58.13.25</x-tad-smaller>
<x-tad-bigger>
</x-tad-bigger>
<x-tad-smaller>
http://www.peopleware.be/
</x-tad-smaller><x-tad-smaller>http://www.mobileware.be/</x-tad-smaller>

Reply via email to