[dancer-users] Configuring Plack::Middleware::Expires

Gurunandan Bhat bhat.gurunandan at gmail.com
Mon Feb 18 10:51:21 GMT 2013


Hi,

I am trying to configure Plack::Middleware::Expires and Deflater to add an
expires header and gzip with the following in my config.yml:

plack_middlewares:
  -
    - 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...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20130218/c4ed5eb6/attachment-0001.htm>


More information about the dancer-users mailing list