Skip to content

Conversation

reithor
Copy link
Contributor

@reithor reithor commented Feb 25, 2025

Following the steps from https://doc.ibexa.co/en/latest/infrastructure_and_maintenance/cache/http_cache/fastly/#enable-basic-auth-on-fastly we noticed that the 1st ESI request is never cached when enabling Basic Auth.

PR removes req.http.Authorization header for all ESI subrequests - fixing the issue.

@reithor reithor requested review from mnocon and vidarl February 25, 2025 13:41
@github-actions
Copy link

Preview of modified Markdown:

@reithor reithor requested a review from vidarl February 25, 2025 14:02
Copy link
Contributor

@mnocon mnocon left a comment

Choose a reason for hiding this comment

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

Thank you Thorsten!

Looks good to me doc-wise, I assume you've tested this already? Or do you think QA is needed here?

Co-authored-by: Marek Nocoń <mnocon@users.noreply.github.com>
@reithor
Copy link
Contributor Author

reithor commented Feb 25, 2025

Thank you Thorsten!

Looks good to me doc-wise, I assume you've tested this already? Or do you think QA is needed here?

It's tested - @vidarl and myself did a quick" testing session"

@mnocon
Copy link
Contributor

mnocon commented Feb 25, 2025

Ok, so just ping me when you feel like it's ready to be merged and I will take care of that 😉

@reithor
Copy link
Contributor Author

reithor commented Feb 25, 2025

Ok, so just ping me when you feel like it's ready to be merged and I will take care of that 😉

@mnocon , can be merged, I am feeling it !

@mnocon mnocon merged commit a913e86 into master Feb 25, 2025
6 of 7 checks passed
@mnocon mnocon deleted the fixed-fastly-basic-auth-snippet branch February 25, 2025 14:59
mnocon added a commit that referenced this pull request Feb 25, 2025
* Fixed basic auth snippet

* Update docs/infrastructure_and_maintenance/cache/http_cache/fastly.md

Co-authored-by: Vidar Langseid <vl@ibexa.co>

* Update docs/infrastructure_and_maintenance/cache/http_cache/fastly.md

Co-authored-by: Marek Nocoń <mnocon@users.noreply.github.com>

---------

Co-authored-by: Vidar Langseid <vl@ibexa.co>
Co-authored-by: Marek Nocoń <mnocon@users.noreply.github.com>
mnocon added a commit that referenced this pull request Feb 25, 2025
* Fixed basic auth snippet

* Update docs/infrastructure_and_maintenance/cache/http_cache/fastly.md

Co-authored-by: Vidar Langseid <vl@ibexa.co>

* Update docs/infrastructure_and_maintenance/cache/http_cache/fastly.md

Co-authored-by: Marek Nocoń <mnocon@users.noreply.github.com>

---------

Co-authored-by: Vidar Langseid <vl@ibexa.co>
Co-authored-by: Marek Nocoń <mnocon@users.noreply.github.com>
@mnocon
Copy link
Contributor

mnocon commented Feb 25, 2025

Thank you Thorsten!

I've cherry-picked this fix to 4.6 and 3.3:

and it will be live soon 🎉

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.

3 participants