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

Add a CDNise mu-plugin #173

Merged
merged 17 commits into from Aug 22, 2023
Merged

Add a CDNise mu-plugin #173

merged 17 commits into from Aug 22, 2023

Conversation

dd32
Copy link
Member

@dd32 dd32 commented Mar 1, 2022

This adds a CDNisation plugin that loads assets from s.w.org instead of from WordPress.org in production situations.

It's draft while pending https://make.wordpress.org/systems/2022/02/22/cors-headers-for-s-w-org/ to allow the removal of the blocked list of script/style handles that cannot currently load due to CORS issues.

mu-plugins/cdn/cdn-assets.php Outdated Show resolved Hide resolved
@dd32 dd32 marked this pull request as ready for review May 12, 2022 04:01
This also only modifies recent files, such that older files that have not been modified recently retain their previous caches during deploys.
…emtime differences.

Cache the file hashes using APCu.
Move the mid-deploy cache buster into a separate function.
Apply to URLs generated by `plugins_url()`.
@dd32 dd32 merged commit 1cefc6f into trunk Aug 22, 2023
1 of 2 checks passed
@dd32 dd32 deleted the add/cdn-plugin branch August 22, 2023 03:00
@dd32 dd32 restored the add/cdn-plugin branch August 22, 2023 03:02
@dd32 dd32 deleted the add/cdn-plugin branch August 22, 2023 03:04
@dd32 dd32 restored the add/cdn-plugin branch August 22, 2023 03:05
@dd32 dd32 deleted the add/cdn-plugin branch August 22, 2023 03:05
@dd32 dd32 mentioned this pull request Aug 22, 2023
@dd32 dd32 restored the add/cdn-plugin branch August 25, 2023 02:15
dd32 added a commit that referenced this pull request Aug 25, 2023
@dd32 dd32 mentioned this pull request Aug 25, 2023
dd32 added a commit that referenced this pull request Aug 25, 2023
* Revert "Global Fonts: Fix the inline URLs after #424."
* Revert "Add CDN versioning for fonts (#424)"
* Revert "Add a CDNise mu-plugin (#173)"
@dd32 dd32 mentioned this pull request Aug 25, 2023
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.

None yet

1 participant