Hello.
There is a need to cache data that is taken from external resources, namely https://maps.googleapis.com/ and https://www.google-analytics.com :
You can do this:
location ~* \.(jpg|jpeg|png|gif|ico|css|js)$ { expires 24h; } but the application static and media files are in ../static and ../media
and now I'm doing something like:
location /static { root /var/www/project/static; gzip on; gzip_min_length 256; gzip_proxied expired no-cache no-store private auth; gzip_types *; gzip_comp_level 9; expires 15d; } and about the same for media
But if you use the first option, then the one that does not work with root and static does not work.
How to implement it correctly?
Thank you in advance!