-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Batch trivialize unnecessary cloudfront.net rewrites #15998
Conversation
@@ -55,7 +55,7 @@ | |||
|
|||
|
|||
<rule from="^http://c\.cksource\.com/" | |||
to="https://d2xc7e2akbvihw.cloudfront.net/" /> | |||
to="https://c.cksource.com/" /> |
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.
This rule can be removed (covered by the trivial rewrite)
@@ -87,7 +87,7 @@ | |||
to="https://www.comixology.com/" /> | |||
|
|||
<rule from="^http://support\.comixology\.com/" | |||
to="https://d3jyn100am7dxp.cloudfront.net/" /> | |||
to="https://support.comixology.com/" /> |
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.
This rule can be removed (covered by the trivial rewrite)
@@ -28,9 +28,9 @@ | |||
to="https://$1dealerrater.com/" /> | |||
|
|||
<rule from="^http://cdn-static\.dealerrater\.com/" |
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.
This subdomain is not listed in the targets
@@ -28,9 +28,9 @@ | |||
to="https://$1dealerrater.com/" /> | |||
|
|||
<rule from="^http://cdn-static\.dealerrater\.com/" | |||
to="https://d3go5n7g2hd1g0.cloudfront.net/" /> | |||
to="https://cdn-static.dealerrater.com/" /> | |||
|
|||
<rule from="^http://cdn-user\.dealerrater\.com/" |
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.
This subdomain is not listed in the targets
@@ -44,7 +44,7 @@ | |||
to="https://s3.amazonaws.com/$1.filemobile.com/" /> | |||
|
|||
<rule from="^http://cimg\.filemobile\.com/" | |||
to="https://d2ksawk1637r8x.cloudfront.net/" /> | |||
to="https://cimg.filemobile.com/" /> |
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.
This rule can be removed (covered by the trivial rewrite)
@@ -70,7 +70,7 @@ Non-2xx HTTP code: http://cfs1.gcaptain.com/ (200) => https://d2m8pnbf2v4ae2.clo | |||
to="https://d38ecmhxsvwui3.cloudfront.net/" /> | |||
|
|||
<rule from="^http://cfs1\.gcaptain\.com/" | |||
to="https://d2m8pnbf2v4ae2.cloudfront.net/" /> | |||
to="https://cfs1.gcaptain.com/" /> |
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.
This rule can be removed (covered by the trivial rewrite)
src/chrome/content/rules/MESO-Rx.xml
Outdated
@@ -47,7 +47,7 @@ Non-2xx HTTP code: http://www.thinksteroids.com/ (200) => https://www.thinkstero | |||
|
|||
|
|||
<rule from="^http://cdn\.thinksteroids\.com/" | |||
to="https://d1uxx6tvzy89fj.cloudfront.net/" /> | |||
to="https://cdn.thinksteroids.com/" /> |
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.
This rule can be removed (covered by the trivial rewrite)
@@ -65,7 +65,7 @@ | |||
<test url="http://assets.rovio.com/rovio/favicon.ico" /> | |||
|
|||
<rule from="^http://assets-production\.rovio\.com/" | |||
to="https://ductl1gjw76cl.cloudfront.net/" /> | |||
to="https://assets-production.rovio.com/" /> |
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.
This rule can be removed (covered by the trivial rewrite)
@@ -112,7 +112,7 @@ Fetch error: http://me.sailthru.com/ => https://www.sailthru.com/: Too many redi | |||
to="https://na-sj08.marketo.com/" /> | |||
|
|||
<rule from="^http://media\.sailthru\.com/" | |||
to="https://d1t6td7a2qcurl.cloudfront.net/" /> | |||
to="https://media.sailthru.com/" /> |
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.
This rule can be removed (covered by the trivial rewrite)
@@ -60,7 +60,7 @@ | |||
to="https://www.scmagazine.com/" /> | |||
|
|||
<rule from="^http://media\.scmagazine\.com/" | |||
to="https://dw5yb2c18zulu.cloudfront.net/" /> | |||
to="https://media.scmagazine.com/" /> |
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.
This rule can be removed (covered by the trivial rewrite)
I suggested simplifications. It's okay if you think the manual removal of redundant rules is outside the scope of this PR. On the other hand, #15998 (review) and #15998 (review) should be addressed. |
@Bisaloo I have removed the redundant rules and addressed the missing targets. It seems that |
I'll wait a bit before merging in case @gloomy-ghost @Hainish @jeremyn or @J0WI wants to double check. |
I'm not so familiar with nodejs, but I think this is a valuable enhancement. |
In general ruleset parsing scripts should be checked in, along with the methodology to generate any data sets that the parsing script relies on (such as the hosts in Some of the host clean-up scripts that @RReverser has run haven't been checked in, but I think this is a good practice in general, and we may want to start a |
I think I have checked in all of them, which one you have in mind? |
Looking at the diff in this PR, many of these should be possible to actually trivialise further by running |
@RReverser, it looks like this was done already in 61cec8e. Do you think the subsequent commits allow for further simplification by the script? |
@Bisaloo Ah, I've just seen Adk2.xml which can be trivialised further, but it can't by automatic script as there is |
@J0WI @Hainish the script I used to find the host is rather dirty and include a bit of manual steps.
https://gist.github.com/cschanaj/2ee89cb791eeda0e764b167c5c3f4ede @RReverser I agree that some rulesets can be futher trivialized but the |
@cschanaj it's okay if the scripts are sloppy, I think the important part is that the process is documented and can be reproduced in the future. If someone comes along and cleans it up (or you have time to down the line), all the better. |
Can I edit the commit message to remove intermediate commits and just keep |
@Bisaloo please feel free to edit the commit message. thanks!! |
Attached the source code used to perform the batch rewrites