Thanks Vincent! What if I still want to use request.static_url() and have custom headers in static assets?
W dniu piątek, 8 lipca 2016 20:08:20 UTC+2 użytkownik Vincent Catalano napisał: > > One way to do this would be to serve your static content using a view > callable and add the X-Content-Type-Options header the response: > http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/assets.html#advanced-serving-static-assets-using-a-view-callable > > On Fri, Jul 8, 2016 at 9:08 AM, Marcin Raczyński <[email protected] > <javascript:>> wrote: > >> I have static view configured: >> >> >> config.add_static_view(name='static', path='mypackage:assets') >> >> >> I want every static file response has header "X-Content-Type-Options". >> >> How can I do it? >> >> -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/51152ff7-c0ed-412a-9e56-471d89845fec%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
