Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default varnish configurable #11

Open
runelaenen opened this issue Sep 22, 2022 · 0 comments
Open

Default varnish configurable #11

runelaenen opened this issue Sep 22, 2022 · 0 comments

Comments

@runelaenen
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant