Skip to content

Commit

Permalink
Merge branch 'hotfix/v2.3.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
ambroisemaupate committed May 28, 2024
2 parents 95213b6 + 9997567 commit 89196f9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to project will be documented in this file.

## [2.3.3](https://github.com/roadiz/skeleton/compare/v2.3.2...v2.3.3) - 2024-05-28

### Features

- Allow exposing `Cache-Tags` header when Varnish serve API and Nuxt responses - ([0833570](https://github.com/roadiz/skeleton/commit/083357092318e9b08ba400a5270457d563655f10)) - Ambroise Maupate

## [2.3.1](https://github.com/roadiz/skeleton/compare/v2.3.0...v2.3.1) - 2024-05-16

### Bug Fixes
Expand Down
4 changes: 2 additions & 2 deletions config/packages/nelmio_cors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ nelmio_cors:
origin_regex: true
allow_origin: ['%env(CORS_ALLOW_ORIGIN)%']
allow_methods: ['GET', 'OPTIONS', 'POST', 'PUT']
allow_headers: ['Content-Type', 'Authorization', 'Www-Authenticate', 'x-g-recaptcha-response']
expose_headers: ['Link', 'Www-Authenticate']
allow_headers: ['Content-Type', 'Authorization', 'Www-Authenticate', 'x-g-recaptcha-response', 'Cache-Tags']
expose_headers: ['Link', 'Www-Authenticate', 'Cache-Tags']
max_age: 3600
paths:
'^/': ~
Expand Down
4 changes: 2 additions & 2 deletions docker/varnish/default.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,9 @@ sub vcl_deliver {
#
# You can do accounting or modifying the final object here.

# Remove cache-tags, unless you want Cloudflare or other to see them
# Remove cache-tags, unless you want Cloudflare or Nuxt to see them (to use cache tags on Nuxt responses)
# Make sure to allow CORS on Cache-Tags header if you want to use it on Nuxt.
unset resp.http.X-Cache-Tags;
# Comment the following line to send the "Cache-Tags" header to the client (e.g. to use CloudFlare cache tags)
unset resp.http.Cache-Tags;
}

0 comments on commit 89196f9

Please sign in to comment.