Skip to content

Commit

Permalink
Fixed static resource caching unaffected by Next Intl translations
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianLeChat committed Dec 15, 2024
1 parent 2dcf6b2 commit 585d4c5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docker/default.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,13 @@ sub vcl_recv {
return (pass);
}

# Tentative de récupération de la page en cache.
return (hash);
# Mise en cache des ressources statiques générées par NextJS.
if (req.url ~ "^/assets" || req.url ~ "^/_next") {
return (hash);
}

# Passage de la requête au back-end sans mise en cache.
return (pass);
}

sub vcl_deliver {
Expand Down

0 comments on commit 585d4c5

Please sign in to comment.