unit icon indicating copy to clipboard operation
unit copied to clipboard

Set custom response headers

Open lubo opened this issue 6 years ago • 2 comments

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.

lubo avatar Sep 19 '19 20:09 lubo

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

misaon avatar Aug 20 '20 10:08 misaon

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

Mikopet avatar Aug 13 '21 11:08 Mikopet

I join, very important for static files

baksdev avatar Dec 10 '22 09:12 baksdev