Skip to content

Commit

Permalink
chore: cache rule for assetlinks in nginx docker (#9290)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgarel authored Nov 14, 2023
1 parent 4ea7db2 commit 713efd7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions conf/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ server {
gunzip on;
}

# GoogleAssociationService made 2500 requests/min to assetlinks.json
# and much less when caching headers are sent
location = /.well-known/assetlinks.json {
include conf.d/off.cors-headers.include;
expires 1d;
try_files $uri $uri/ =404;
}

location ~ /(favicon\.ico)$ {
include conf.d/off.cors-headers.include;
try_files $uri $uri/ =404;
Expand Down

0 comments on commit 713efd7

Please sign in to comment.