Ok all my wordpress and joomla site I can always put this into my Nginx website config and it enables browser-side caching.
# Media: images, icons, video, audio, HTC
location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc|js|css)$ {
expires 1M;
access_log off;
add_header Cache-Control "public";
}
This same code in Moodle makes all my images disappear. Does anyone have the right way to enable browser caching in moodle with nginx?