How to map Nginx http response header?

I tried several configs but seems to not work, like…

Code:

map $http_x_litespeed_cache_control $nocacheheader {
    default      0;
    no-cache   1;
    }

Code:

map $upstream_http_x_litespeed_cache_control $nocacheheader {
    default      0;
    no-cache   1;
    }

Code:

map $sent_http_x_litespeed_cache_control $nocacheheader {
    default      0;
    no-cache   1;
    }

Page is still cached.
What is the correct format?

My HTTP response header:

x-litespeed-cache-control no-cache
Thanks!

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs