[dancer-users] Configuring Plack::Middleware::Expires
bhat.gurunandan at gmail.com
Tue Feb 19 06:41:30 GMT 2013
Sorry - I found my error - the second parameter in the options list must be
'content_type' not 'content-type'
On Mon, Feb 18, 2013 at 7:28 PM, Gurunandan Bhat
<bhat.gurunandan at gmail.com>wrote:
> I am trying to configure Plack::Middleware::Expires and Deflater to add an
> expires header and gzip with the following in my config.yml:
> - Expires
> - content-type
> - image/gif
> - image/jpeg
> - expires
> - access plus 1 day
> - Deflater
> I find that while the Deflater middleware works correctly, the Expires
> does not. Is there an error in my YAML syntax? I tried to parse the YAML
> separately and I seem to get the correct options that Expires expects.
> Would appreciate your help,
> Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the dancer-users