Skip to content

Default varnish configurable #11

@runelaenen

Description

@runelaenen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions