struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paweł Wielgus <poulw...@gmail.com>
Subject Re: Problem with struts.serve.static.browserCache
Date Tue, 07 Sep 2010 19:21:55 GMT
Hi Oscar,
sorry for the broken links,
i've corrected them to this one:
http://elsevier.pl:8080/CacheProblem.zip

I also don't know what is current status of this problem,
as stated in article it was tested in the beggining of 2009,
so maybe now it's different.
If You will do more test with current browsers,
please let us know about it.

Best greetings,
Paweł Wielgus.

2010/9/7 Oscar <oscar.kalderon@gmail.com>:
> Thanks Pawel, i tried those things (except add metatags to my jsps) but it
> doesn't work for me, maybe i'm doing something wrong and that's why don't
> work. Anyway, i want to download the sample from your post but the link is
> broken, also the link that you posted in the second comment is broken.
>
> Regards.
>
> 2010/9/7 Paweł Wielgus <poulwiel@gmail.com>
>
>> Hi Oscar,
>> You can find some info about this subject here:
>>
>> http://poulwiel.blogspot.com/2009/01/browser-back-button-and-caching-problem.html
>>
>> Best greetings,
>> Paweł Wielgus.
>>
>> 2010/9/7 Oscar <oscar.kalderon@gmail.com>:
>> > Hi to all, i have a little requirement in my application. Clients need
>> that,
>> > after logout, When they press the browser Back button, it shows that user
>> > doesn't have permission because he was already logged out. For example,
>> if
>> > i'm inside the application and in that right moment i'm seeing some
>> sensible
>> > info and press the logout button, when they press browser Back button
>> they
>> > can't see that sensible info.
>> >
>> > For me, it looks like a situation where i have to reset the browser cache
>> or
>> > something like that. I googled a lot about that and i find that delete
>> cache
>> > is impossible, but i find some javascript scripts, or use
>> > response.setHeaders but none of that worked for me.
>> >
>> > I'm working with Struts 2.1.8 and i found that i can override the
>> parameter
>> > struts.serve.static.browserCache in struts.xml to enable struts to add
>> the
>> > necessary headers to all static content. But isn't working. I assured
>> that
>> > struts.serve.static = true as says in the documentation:
>> >
>> > ### Used by FilterDispatcher
>> > ### This is good for development where one wants changes to the static
>> > content be
>> > ### fetch on each request.
>> > ### NOTE: This will only have effect if struts.serve.static=true
>> > ### If true -> Struts will write out header for static contents such
>> > that they will
>> > ###             be cached by web browsers (using Date, Cache-Content,
>> > Pragma, Expires)
>> > ###             headers).
>> > ### If false -> Struts will write out header for static contents such
>> > that they are
>> > ###            NOT to be cached by web browser (using Cache-Content,
>> > Pragma, Expires
>> > ###            headers)
>> >
>> >
>> >
>> > But it doesn't work. Somebody knows why doesn't work or another way to
>> avoid
>> > cache after i logout from a Struts application (to avoid show cached
>> content
>> > when user press Back button)?
>> >
>> > Thanks in advance.
>> >
>> >
>> > --
>> > Oscar Calderón
>> > SCJP 6  <http://javahowto.net>
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>
>
> --
> Oscar Calderón
> SCJP 6  <http://javahowto.net>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message