-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Conversation
Thanks.
|
It seems you tried browsing to the cdn subdomain. It's not something that people would normally do, but the other pages on the site all load content from cdn.ghacks.net. The rest of the pages I checked didn't have any issues loading it over https with this rule on so it would be better to leave it in. |
FYI this is a duplicate of PR #7746, so be sure to close one of these PRs after the other one is merged. |
I agree with @gloomy-ghost that we have to consider the behavior at http://cdn.ghacks.net even though users would not normally go there directly. Note that some of these broken Looking at the Dev Tools > Network tab for http://www.ghacks.net, it looks like the important content from the |
Oops, missed the notification. I have some rulesets of CDN domains that are even more radical than this one, like #7281 and #7484. However they are just pending forever because the trade-off is hard to be made. Some expanding thoughts: Many CDNs offer lazy caching which only loads and caches resources from a origin when they actually received requests. It causes as many MCBs as the origin has, but frankly I don't except a CDN domain serving pages instead of resources, and securing the whole CDN sounds really fascinating. |
How do I get it to only rewrite /wp-content/ and /wp-includes/ I'm not getting it right. |
@redranamber |
ERROR src/chrome/content/rules/GHacks.net.xml: No rule or exclusion applies to test URL http://cdn.ghacks.net/ What happened there? |
Each The workaround is to add an <!-- This exception disables the implicit test created by the target. -->
<exclusion pattern="^http://bbs\.showapi\.com/$" /> |
This is done in case you missed it. |
Oh, sorry for the delay. Please delete the tests for www.ghacks.net and deals.ghacks.net, add appropriate indent for exclusion/rule and newlines between target/securecookie/rule according to the style guide. Then we are ready to go :) |
Is this right now? The style guide isn't clear on tabs or spacing. |
Maybe it's just not prominent enough I guess. Can you move the exclusion right under the target it applies to, and also the tests (with properly indent)? |
It would probably help to add a more complex rule as an example, that one doesn't even have the securecookie. |
Merged, thanks! |
No description provided.