static file mimetype

21 views
Skip to first unread message

Kesav Kumar Kolla

unread,
Jan 14, 2012, 2:40:38 AM1/14/12
to pylons-...@googlegroups.com
I want setup html5 application cache with my pyramid application.  HTML5 application cache requires a manifest file.  The manifest file needs to be served with a MIME type of text/cache-manifest.  How can I get pyramid to serve the manifest file?

Regards,
-kesav

Chris McDonough

unread,
Jan 14, 2012, 4:05:24 AM1/14/12
to pylons-...@googlegroups.com

This is one way:

http://docs.pylonsproject.org/projects/pyramid_cookbook/en/latest/files.html#serving-file-content-dynamically

>
>
> Regards,
> -kesav
>
> --
> You received this message because you are subscribed to the Google
> Groups "pylons-discuss" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/pylons-discuss/-/VJ3BC-7py_wJ.
> To post to this group, send email to pylons-...@googlegroups.com.
> To unsubscribe from this group, send email to pylons-discuss
> +unsub...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/pylons-discuss?hl=en.


Kesav Kumar Kolla

unread,
Jan 14, 2012, 11:56:08 AM1/14/12
to pylons-...@googlegroups.com
Does this dynamic serving handles correct cache headers?
Reply all
Reply to author
Forward
0 new messages