Is it possible somehow to force a 200 (cache) response instead of a 304 not modified for static files? If so you could potentially save a lot of server requests and speed up the loadtime considerbly for returning visitors.
I've found Expires alone does not properly set the behavior. Below has been a sure fire:
# Set cache
expires 1M;
add_header Pragma public;
add_header Cache-Control "public";
This going in your location block desired..
I also think there is a lot of misleading information out there on this.. That 200 is somehow the same as 200 (cache).
From my understanding:
200 - server request - transfer OK 200 (cache) - OK - no server request (from cache) 304 - server request - no transfer (not modified)
200 (cache) as I understand it does NOT make a server request at all.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With