Skip to content

Commit

Permalink
PHP: Added Varnish bypass for Blackfire.io #13
Browse files Browse the repository at this point in the history
  • Loading branch information
paales committed Mar 4, 2020
1 parent 981a38a commit 619e6a1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [HEAD]

### Added

- Varnish bypass for blackfire.io

## [1.0.0-preview.1] - 2020-02-25

## [1.0.0-preview.0] - 2020-02-24

### Added
Expand Down
5 changes: 5 additions & 0 deletions varnish/default.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ sub vcl_recv {
return (pass);
}

# Let blackfire.io profiles pass
if (req.http.X-Blackfire-Query) {
return (pass);
}

# Bypass shopping cart, checkout and search requests
if (req.url ~ "/checkout" || req.url ~ "/catalogsearch") {
return (pass);
Expand Down

0 comments on commit 619e6a1

Please sign in to comment.