nginx/unit

Controlling response headers

lubo opened this issue · 5 comments

lubo commented

Hi. It looks like Unit can't set custom response headers. Setting custom headers, for example, would be extra useful when serving static files. Often, one would like to set Cache-Control: public, max-age=31536000 when file exists or Cache-Control: no-cache when it doesn't. Furthermore, one might want to set X-Content-Type-Options: nosniff for both application responses and static files.

+1
In my company we like to use Nginx unit but we desperately need a cache for static files at the moment.

This is crucial in our case too.
Any news here?

I join, very important for static files

Need this feature as well

committed in a28bef0