MMmmm.... Could it be possible an expiration before the launch of the adobe
reader plugin for the firefox tab?

I'll try it out.

thanks,
f(t)

On Jan 24, 2008 4:54 AM, severian <[EMAIL PROTECTED]> wrote:

>
> Something like this may work for your DynamicWebResource:
>
> @Override
>    protected void setHeaders(WebResponse response) {
>        super.setHeaders(response);
>        String name = getFileName();
>        if (name != null) {
>            response.setHeader("Content-Disposition",
> String.format("attachment; filename=\"%s\"", name));
>        }
>
>        // Cache for 60 secs to give client app (e.g. word or excel or
> acrobat) time to open file.
>        response.setDateHeader("Expires", System.currentTimeMillis() + (60
> *
> 1000));
>        response.setHeader("Cache-Control", "max-age=" + 60);
>    }
> --
> View this message in context:
> http://www.nabble.com/Hi%2C-PDF-Question-tp15050471p15060200.html
> Sent from the Wicket - User mailing list archive at 
> Nabble.com<http://nabble.com/>
> .
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to