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.
misaon commented
+1
In my company we like to use Nginx unit but we desperately need a cache for static files at the moment.
Mikopet commented
This is crucial in our case too.
Any news here?
baksdev commented
I join, very important for static files
glukkkk commented
Need this feature as well
hongzhidao commented
committed in a28bef0