You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Marcin Muras (JIRA)" <de...@myfaces.apache.org> on 2009/01/22 11:17:59 UTC

[jira] Issue Comment Edited: (TOMAHAWK-1388) CAPTCHA - Add random string to image url. It prevent browser from caching captcha image.

    [ https://issues.apache.org/jira/browse/TOMAHAWK-1388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12666109#action_12666109 ] 

murasm edited comment on TOMAHAWK-1388 at 1/22/09 2:16 AM:
-----------------------------------------------------------------

I use tomahawk with RichFaces 3.2.2.GA.
Behaviour is realy strange because when I don't use AJAX in all browser everything works fine.

When I reRender fragment (with captcha) using ajax (see code below):
- Firefox 3.0.5 - works fine
- Safari 3.1.1 - do not refresh captcha image
- IE 7.0.5 - do not refresh captcha image

Now I see that maybe it is not browser cache problem because not only image do not change but also captcha string. It see like richfaces reRender do not force captcha to change their value in some environment.

Code:
...
<a4j:form>
<a4j:outputPanel id="captcha-panel">
   <a4j:commandLink reRender="captcha-panel" ajaxSingle="true">
      Refresh captcha
   </a4j:commandLink>
   <t:captcha captchaSessionKeyName="captchaKey" id="captcha" />				 
</a4j:outputPanel>
</a4j:form>
..

      was (Author: murasm):
    I use tomahawk with RichFaces 3.2.2.GA.
Behaviour is realy strange because when I don't use AJAX in all browser everything works fine.

When I reRender fragment (with captcha) using ajax:
- Firefox 3.0.5 - works fine
- Safari 3.1.1 - do not refresh captcha image
- IE 7.0.5 - do not refresh captcha image

Now I see that maybe it is not browser cache problem because not only image do not change but also captcha string. It see like richfaces reRender do not force captcha to change their value in some environment.
  
> CAPTCHA - Add random string to image url. It prevent browser from caching captcha image.
> ----------------------------------------------------------------------------------------
>
>                 Key: TOMAHAWK-1388
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1388
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>    Affects Versions: 1.1.8
>            Reporter: Marcin Muras
>            Assignee: Hazem Saleh
>
> Some browser caches image generated by captcha component. It could be greate to have some parameter (e.g. randomString="true/false") telling component to add some random param to image url.
> It prevent any browser from caching such image.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.