lando / lando/varnish

Default varnish configurable

Open
#11 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2
Forks
2
PR merge metrics
No merged PRs in 30d

Description

The varnish container comes with some default configurations.

For example in 'defaults/vcl_recv.vcl' the following code blocks any XMLHttpRequests from being cached.
```
# Do not cache ajax requests.
if (req.http.X-Requested-With == "XMLHttpRequest") {
set req.http.X-VC-Cacheable = "NO:Requested with: XMLHttpRequest";
return(pass);
}
```

Since this is executed before the 'lando.vcl', it seems like it is not possible to override this.

Do you think that there could be a way to override these defaults-files?
On the production server this is no issue, since I can just edit the files there. But in a container that's not really a possibility.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by inspecting defaults/vcl_recv.vcl and lando.vcl, then trace how the container loads these VCL files and in what order. Determine whether the default rules can be overridden through the existing configuration path; done means users can customize the defaults without editing files inside the container.

Written by the indexing model from the issue text.

Assessment

Domain
infrastructure
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.