<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2995" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I don't understand why Flex cache was not working
as I understand it should in the following case of a JSP. Am I completely wrong
about how this works?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>1. The JSP had property cache=locale only beacuse
in case of error it must redirect to a different page depending on language,
otherwise I would have defined cache=always.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>2. The JSP does this:</FONT></DIV>
<DIV><FONT face=Arial size=2> 2.1 Find out locale from
OpenCms</FONT></DIV>
<DIV><FONT face=Arial size=2> 2.2 Get value of the "imageId"
request parameter</FONT></DIV>
<DIV><FONT face=Arial size=2> 2.3 Get image bytes with id =
imageId from DB</FONT></DIV>
<DIV><FONT face=Arial size=2> 2.4 Write image bytes to the
response output.</FONT></DIV>
<DIV><FONT face=Arial size=2> 2.5 If exception, redirect to
page depending on locale</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>As far as I understand, this should work because
the resulting image depends only on the "imageId" request parameter,
but users were getting the same image all the time until I took the JSP out of
the Flex cache. Can someone explain why?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Pere</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>