Skip to content

Build: Prepare for releases.jquery.com #70

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

Merged
merged 1 commit into from
Feb 18, 2021
Merged

Conversation

mgol
Copy link
Member

@mgol mgol commented Jan 20, 2021

  1. Point CDN links directly to https://code.jquery.com.
  2. Add a separate helper for non-SRI CDN links. This is mostly used for CSS
    which, in theory, could also have SRI applied but that would require changes to
    the SRI plugin so we're leaving CSS without SRI for now.
  3. Git files are now served from the /git/ directory.
  4. Add config-sample.json with the new required cdn_origin field.

Copy link
Contributor

@brianwarner brianwarner left a comment

Choose a reason for hiding this comment

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

This all looks good to me, thank you!

1. Point CDN links directly to https://code.jquery.com.
2. Add a separate helper for non-SRI CDN links. This is mostly used for CSS
which, in theory, could also have SRI applied but that would require changes to
the SRI plugin so we're leaving CSS without SRI for now.
3. Git files are now served from the `/git/` directory.
4. Add config-sample.json with the new required cdn_origin field.
@mgol mgol force-pushed the explicit-cdn-origin branch from 2db2559 to 476e9ef Compare February 17, 2021 15:55
@mgol mgol changed the base branch from dockerize to master February 17, 2021 15:56
Base automatically changed from master to main February 17, 2021 15:57
@mgol mgol merged commit 2485653 into jquery:main Feb 18, 2021
@mgol mgol deleted the explicit-cdn-origin branch February 18, 2021 16:19
Krinkle pushed a commit that referenced this pull request Feb 28, 2021
This is a backport of commit 2485653 from #70

> 1. Point CDN links directly to https://code.jquery.com.
> 2. Add a separate helper for non-SRI CDN links. This is mostly used for CSS
>   which, in theory, could also have SRI applied but that would require changes to
>   the SRI plugin so we're leaving CSS without SRI for now.
> 3. Add config-sample.json with the new required cdn_origin field.
>    Defined in infra as of jquery/infrastructure@ffa44e60b4.

Differences:

* The change to use a `/git` directory for Git files was not included in this
  backport, as doing so would break the current code.jquery.com site.

  We can either take the two lines of Nginx config from the new releases-jq
  site and apply to the old codeorigin-jq in Puppet first, and thus use /git/
  on both sites before the transition starts; or we can instead apply the old
  Nginx config for the top-level files also to releases-jq and perform the
  adoption of /git/ in the WordPress pages after the transition.
  Either way could work.

  For now, in the name of progress, this commit does neither. It backports
  the known-safe part of the prep commit so that we can deploy and verify
  the 'cdn_origin' config option, and the other template changes made by this
  commit.
Krinkle pushed a commit that referenced this pull request Mar 7, 2021
Git files are now served from the `/git/` directory.

Support for this was added on the server in the private commit
at jquery/infrastructure@aeae9f8728b.

This is in preparation for a new browser at releases.jquery.com,
and that server will only support `/git/` for these files.

The codeorigin server will supporting both the top-level access
and /git/ access, by making them redirect to releases.jquery.com.

Ref #70.
Krinkle pushed a commit that referenced this pull request Mar 7, 2021
Git files are now served from the `/git/` directory.

Support for this was added on the server in the private commit
at jquery/infrastructure@aeae9f8728b.

This is in preparation for a new browser at releases.jquery.com,
and that server will only support `/git/` for these files.

The codeorigin server will supporting both the top-level access
and /git/ access, by making them redirect to releases.jquery.com.

Ref #70.
Krinkle added a commit that referenced this pull request Mar 8, 2021
Git files are now served from the `/git/` directory.

Support for this was added on the server in the private commit
at jquery/infrastructure@aeae9f8728b.

This is in preparation for a new browser at releases.jquery.com,
and that server will only support `/git/` for these files.

The codeorigin server will supporting both the top-level access
and /git/ access, by making them redirect to releases.jquery.com.

Ref #70.

Co-authored-by: Michał Gołębiowski-Owczarek <m.goleb@gmail.com>
Krinkle added a commit to jquery/jquery-wp-content that referenced this pull request Aug 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants