-
Notifications
You must be signed in to change notification settings - Fork 170
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
HeroDevs support #468
HeroDevs support #468
Conversation
- styles for the new download button are in jquery/jquery-wp-content#468 Ref jquery/jquery-wp-content#462
- styles for the new download button are in jquery/jquery-wp-content#468 Ref jquery/jquery-wp-content#462 Ref jquerygh-245 Closes jquerygh-243 Co-authored-by: Andre Angelantoni <[email protected]>
I believe that was a change @timmywil made after Andre prepared the visual changes? Can you weigh in here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One question
Indeed. It'd be ideal if both PRs could be released at the same time. |
I've changed the styles so that the new download section is styled separately from the old one to avoid the circular dependency. Now, we can merge this PR first and it won't break anything. Then merge the jquery.com PR. Then we can remove the old styles whenever. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that the patch is independent, you'll want to bump the base.css and stylesheet_url versions in header.php
within this patch, so that the new styles will be there (instead of the old cached version), when you merge the jquery.com PR after this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but also what Timo said - please update the query param for base.css.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally, both with and without the jquery.com PR on top. LGTM.
* Switch from central list to per-url hash. This removes the need to know about and remember updating a central list. I noticed one file missing already, namely the typesense-minibar.js file. This slightly improves cache use by not invalidating them all together. * The filemtime timestamp values are so short that an MD5 hash of three filemtime() values is actually longer than just the three numbers concatenated. This means we lack the benefit a hash usually provides, which is that you get exposure to high entropy input in a format shorter than that same input. * Switch from mtime (or mtime-hash) to content-hash. This has a few benefits: - Note that Git does not track modified times. Instead, mtime is whenever a `git clone`, `checkout` or `pull` last created or modified the file locally on that server. For example, if you `git checkout OLD` and then back to `git checkout main`, the files get a newer mtime. This is what happens by default at the OS level. Git isn't setting these mtime values. This means the URL ends up alternating depending on which server (e.g. wp-04 and wp-05) last generated the page. It also means different pages on the site may have a different URLs for the same asset, thus making ineffective use of caching. If the site was statically generated in CI, it would bump the cache after every commit instead of only when that file has changed, because in CI the "git clone" woulld create/modify all files at that time. - It is the same between local, staging, and production, which might ease debugging in some cases. - It allows continuing and re-using old browser (and CDN) caches if a commit is rolled back for some reason, since it would literally be the same content and thus URL again. Follows-up 2015fcb. Ref #469 Ref #468
* Switch from central list to per-url hash. This removes the need to know about and remember updating a central list. I noticed one file missing already, namely the typesense-minibar.js file. This slightly improves cache use by not invalidating them all together. * The filemtime timestamp values are so short that an MD5 hash of three filemtime() values is actually longer than just the three numbers concatenated. This means we lack the benefit a hash usually provides, which is that you get exposure to high entropy input in a format shorter than that same input. * Switch from mtime (or mtime-hash) to content-hash. This has a few benefits: - Note that Git does not track modified times. Instead, mtime is whenever a `git clone`, `checkout` or `pull` last created or modified the file locally on that server. For example, if you `git checkout OLD` and then back to `git checkout main`, the files get a newer mtime. This is what happens by default at the OS level. Git isn't setting these mtime values. This means the URL ends up alternating depending on which server (e.g. wp-04 and wp-05) last generated the page. It also means different pages on the site may have a different URLs for the same asset, thus making ineffective use of caching. If the site was statically generated in CI, it would bump the cache after every commit instead of only when that file has changed, because in CI the "git clone" woulld create/modify all files at that time. - It is the same between local, staging, and production, which might ease debugging in some cases. - It allows continuing and re-using old browser (and CDN) caches if a commit is rolled back for some reason, since it would literally be the same content and thus URL again. Follows-up 2015fcb. Ref #469 Ref #468
* Switch from central list to per-url hash. This removes the need to know about and remember updating a central list. I noticed one file missing already, namely the typesense-minibar.js file. This slightly improves cache use by not invalidating them all together. * The filemtime timestamp values are so short that an MD5 hash of three filemtime() values is actually longer than just the three numbers concatenated. This means we lack the benefit a hash usually provides, which is that you get exposure to high entropy input in a format shorter than that same input. * Switch from mtime (or mtime-hash) to content-hash. This has a few benefits: - Note that Git does not track modified times. Instead, mtime is whenever a `git clone`, `checkout` or `pull` last created or modified the file locally on that server. For example, if you `git checkout OLD` and then back to `git checkout main`, the files get a newer mtime. This is what happens by default at the OS level. Git isn't setting these mtime values. This means the URL ends up alternating depending on which server (e.g. wp-04 and wp-05) last generated the page. It also means different pages on the site may have a different URLs for the same asset, thus making ineffective use of caching. If the site was statically generated in CI, it would bump the cache after every commit instead of only when that file has changed, because in CI the "git clone" woulld create/modify all files at that time. - It is the same between local, staging, and production, which might ease debugging in some cases. - It allows continuing and re-using old browser (and CDN) caches if a commit is rolled back for some reason, since it would literally be the same content and thus URL again. Follows-up 2015fcb. Ref #469 Ref #468 Co-authored-by: Timmy Willison <[email protected]>
I made some modifications to #467, including:
Ref gh-467
Closes gh-462
See companion PRs for jquery.com and api.jquery.com.