From 26c764991df7451af44cc50146db69ef9cce7381 Mon Sep 17 00:00:00 2001 From: Mateusz Bieniek Date: Fri, 18 Jun 2021 11:39:45 +0200 Subject: [PATCH 1/2] Added information in regards to DFS and static files --- docs/varnish/vcl/varnish5.vcl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/varnish/vcl/varnish5.vcl b/docs/varnish/vcl/varnish5.vcl index 298ff774..9e87c87e 100644 --- a/docs/varnish/vcl/varnish5.vcl +++ b/docs/varnish/vcl/varnish5.vcl @@ -59,7 +59,8 @@ sub vcl_recv { } } - // Do a standard lookup on assets (these don't vary by user context hash) + // Do a standard lookup on assets (these don't vary by user context hash) unless assets are served by DFS. + // If you use DFS in your project, please remember to remove or comment out this section. // Note that file extension list below is not extensive, so consider completing it to fit your needs. if (req.url ~ "\.(css|js|gif|jpe?g|bmp|png|tiff?|ico|img|tga|wmf|svg|swf|ico|mp3|mp4|m4a|ogg|mov|avi|wmv|zip|gz|pdf|ttf|eot|wof)$") { return (hash); From ce1b8939af42008b01056561cbec5410ceaaa6c4 Mon Sep 17 00:00:00 2001 From: Mateusz Bieniek Date: Fri, 18 Jun 2021 12:25:03 +0200 Subject: [PATCH 2/2] Update varnish5.vcl --- docs/varnish/vcl/varnish5.vcl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/varnish/vcl/varnish5.vcl b/docs/varnish/vcl/varnish5.vcl index 9e87c87e..a18d847e 100644 --- a/docs/varnish/vcl/varnish5.vcl +++ b/docs/varnish/vcl/varnish5.vcl @@ -59,8 +59,8 @@ sub vcl_recv { } } - // Do a standard lookup on assets (these don't vary by user context hash) unless assets are served by DFS. - // If you use DFS in your project, please remember to remove or comment out this section. + // Do a standard lookup on assets (these don't vary by user context hash). + // If you use DFS in your project, please remember to remove from the list those extensions, which are served using DFS. // Note that file extension list below is not extensive, so consider completing it to fit your needs. if (req.url ~ "\.(css|js|gif|jpe?g|bmp|png|tiff?|ico|img|tga|wmf|svg|swf|ico|mp3|mp4|m4a|ogg|mov|avi|wmv|zip|gz|pdf|ttf|eot|wof)$") { return (hash);