Skip to content

Request: Cloudflare configuration update聽#3473

Closed

Description

@ovflowd

Hey 馃憢 as seen in some discussions on Slack, we've noticed a few little changes we can accomplish to improve (assumingly) the situation related to Node.js Website 5XX Errors when serving binaries.

The changes are outlined in the images below, and the red markers demonstrate what fields need to be changed. (The values shown within these images are the desired result).

Slack Threads:

Cache Rules Updates

image

image

image

image

Origin Rules Updates

The changes below are unrelated but meant to fix some broken links since we've moved to Vercel. The image below shows the entries that should be removed from the Vercel Origin Rule.

image

The images below are new Redirect Rules that should be created:

image

image

image

Activity

  1. Trott commented on Aug 24, 2023

    @Trott
    Member

    @nodejs/build

  2. Trott commented on Aug 24, 2023

    @Trott
    Member

    (Added the build-agenda label so it gets discussed at a meeting in case this stalls or otherwise doesn't get done. Feel free to remove if that's not appropriate. I'm just trying to help Claudio with visibility on this issue.)

  3. Trott commented on Sep 21, 2023

    @Trott
    Member

    If someone has the appropriate access to do this but doesn't want to make more than a small change at a time to caching, perhaps the "don't cache status codes 500 and above" part can be a smaller change that would hopefully have some positive effect?

    image
  4. ovflowd commented on Sep 21, 2023

    @ovflowd
    MemberAuthor

    If someone has the appropriate access to do this but doesn't want to make more than a small change at a time to caching, perhaps the "don't cache status codes 500 and above" part can be a smaller change that would hopefully have some positive effect?

    image

    There's a small typo on the image, on the image both are "No cache" but it should be "No cache" and then "No store"

  5. mhdawson commented on Sep 25, 2023

    @mhdawson
    Member

    @ovflowd I tried doing the small change today, but unfortunately Cloudflare tells me status_code ranges should not overlap (Code: 20110) so the fix for the typo does not seem to be correct.

  6. mhdawson commented on Sep 25, 2023

    @mhdawson
    Member

    I set it to be one entry which is just the No store as from some reading I believe that was what was needed.

  7. ovflowd commented on Sep 25, 2023

    @ovflowd
    MemberAuthor

    I guess tat's fine! (cc @MattIPv4) (Is no store preferrable to no cache?)

  8. MattIPv4 commented on Sep 25, 2023

    @MattIPv4
    Member

    馃憤 No store makes sense here, it is a more aggressive no cache aiui.

  9. ovflowd commented on Sep 26, 2023

    @ovflowd
    MemberAuthor

    @targos would you have time for making the other changes? (Except the one that @mhdawson already did?)

  10. MoLow commented on Sep 26, 2023

    @MoLow
    Member

    I'l take a look at the other changes. CC @nodejs/build

  11. MoLow commented on Sep 26, 2023

    @MoLow
    Member
    1. changed bypass cache for vercel-paths from (http.host eq "nodejs.org" and not http.request.uri.path matches "^/(dist|download|docs|api|documentation|metrics)") to (http.host eq "nodejs.org" and not http.request.uri.path matches "^/(dist|download|docs|api|metrics)")
    2. changed cache non-vercel paths from (http.host eq "nodejs.org" and http.request.uri.path matches "^/(dist|download|docs|api|documentation|metrics)") or (http.host eq "origin.nodejs.org") to (http.host eq "nodejs.org" and http.request.uri.path matches "^/(dist|download|docs|api|metrics)") or (http.host eq "origin.nodejs.org")
    3. adding no store for > 500 status code has already been taken care of by @mhdawson
    4. removed benchmarking.nodejs.org, foundation.nodejs.org and interactive.nodejs.org from redirecting to origin.nodejs.org
    5. added new redirect rules benchmarking.nodejs.org, foundation.nodejs.org and interactive.nodejs.org from redirecting to nodejs.org

    thanks @ovflowd

  12. ovflowd commented on Sep 26, 2023

    @ovflowd
    MemberAuthor

    Thank you so much, @MoLow !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions