Skip to content

Commit

Permalink
Fixed static resource cache not affected 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 7a2713a commit f85157a
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions docker/default.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,13 @@ sub vcl_recv {
return (pass);
}

# Suppression de la mise en cache pour toutes les pages
# nécessitant une authentification utilisateur.
if (req.url ~ "/dashboard" || req.url ~ "/d/" || req.url ~ "/api" || req.url ~ "/settings") {
return (pass);
# Mise en cache des ressources statiques générées par NextJS.
if (req.url ~ "/assets" || req.url ~ "/_next") {
return (hash);
}

# Tentative de récupération de la page en cache.
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 f85157a

Please sign in to comment.