I'd like to set Cache-Control: no-expire
but only on POSTs, what would be the correct way of doing that?
1 Answer
Like this (untested):
http {
if ($request_method = 'POST') {
add_header 'Cache-Control' 'no-expire';
}
}
Like this (untested):
http {
if ($request_method = 'POST') {
add_header 'Cache-Control' 'no-expire';
}
}