Why is a 200 instead of a 304 response returned?

I am testing caching with my nginx setup for a WordPress install. I believe I have things set up correctly, but I’m still seeing 200 responses instead of 304 responses for static assets. For example: curl -I –header ‘If-Modified-Since: Mon, Nov 25 2019 13:31:10 GMT-0500’ –insecure https://testdomain.com/wp-content/plugins/woocommerce/assets/js/jquery-flot/jquery.flot.time.min.js HTTP/1.1 200 OK Server: nginx/1.14.0 (Ubuntu) Date: Mon,…

Details

Apparmor blocks freshclam

Apparmor blocks freshclam. audit: type=1400 audit(1574688195.159:67): apparmor=”DENIED” operation=”open” profile=”/usr/bin/freshclam” name=”/etc/ssl/openssl.cnf” pid=7119 comm=”freshclam” requested_mask=”r” denied_mask=”r” fsuid=1000 ouid=0 I tried to put it in complain mode sudo aa-complain /usr/bin/freshclam But the problem still exists. audit: type=1400 audit(1574688990.754:74): apparmor=”ALLOWED” operation=”open” profile=”/usr/bin/freshclam” name=”/etc/ssl/openssl.cnf” pid=7672 comm=”freshclam” requested_mask=”r” denied_mask=”r” fsuid=1000 ouid=0

Details