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

fix(cache): exclude cache-control with new property #2782

Closed
wants to merge 2 commits into from

Conversation

pdeveltere
Copy link

Information

Type Breaking change
Fix No

Additional info

Fix for #2774


Todos

  • Tests
  • Coverage
  • Example
  • Documentation

@pdeveltere pdeveltere changed the title fix(cache-control): exclude cache-control if part of cache header blacklist fix(cache): exclude cache-control if part of cache header blacklist Aug 13, 2024
@pdeveltere pdeveltere changed the title fix(cache): exclude cache-control if part of cache header blacklist fix(cache): exclude cache-control with new property Aug 13, 2024
@Romakita
Copy link
Collaborator

hello @pdeveltere
Thanks for the PR. Can you add extra option documentation in cache.md please ?

also to have correct release note you have to write your commit message followings the angular commit convention here:

https://www.conventionalcommits.org/en/v1.0.0-beta.4/

See you :)

@Romakita Romakita force-pushed the production branch 4 times, most recently from b76e7c8 to 9230a2a Compare August 25, 2024 08:18
@@ -136,11 +139,13 @@ export class PlatformCacheInterceptor implements InterceptorMethods {

const result = await next();

const calculatedTTL = this.cache.calculateTTL(result, ttl);
if (!this.disableCacheControl) {
const calculatedTTL = this.cache.calculateTTL(result, ttl);
Copy link
Collaborator

@Romakita Romakita Sep 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You have an error here. calculatedTTL isn't available after the bloc. You can run the unit test to reproduce issue ;)

@pdeveltere pdeveltere closed this by deleting the head repository Nov 12, 2024
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

Successfully merging this pull request may close these issues.

2 participants