docker4drupal icon indicating copy to clipboard operation
docker4drupal copied to clipboard

Nginx how to disable cache for static files like CSS

Open ghost opened this issue 1 year ago • 2 comments

Describe your issue When nginx serves CSS files I get max-age=31536000, public how to make this to be "no-cache" like I can do to php files with

header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");

ghost avatar Oct 12 '22 15:10 ghost