Hi!
Please, help me. How to configure so that if this header X-Requested-With XMLHttpRequest was requested, Nginx will send answer in header Cache-Control "no-cache"?
I know it is wrong, just for exsample.
if ($http_x_requested_with = XMLHttpRequest) {
add_header Cache-Control "no-cache";
}
Best regards,
Rostyslav