我想设置Cache-Control: no-expire但只有在POST,这将是什么正确的方法呢?
Cache-Control: no-expire
像这样(未经testing):
http { if ($request_method = 'POST') { add_header 'Cache-Control' 'no-expire'; } }