Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Still experimenting with using appcache to limit access to network requests. When it works, it works well, but the big issue is when users sign in, the browser doesn't always get the right cache manifest delivered, so the network blocking gets in a mess.
- Loading branch information
Showing
15 changed files
with
812 additions
and
208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,37 @@ | ||
CACHE MANIFEST | ||
# v1-{{version}} | ||
/runner | ||
/runner-wrapper | ||
/js/prod/runner-{{version}}.min.js | ||
{{root}}/js/vendor/polyfills.js | ||
{{root}}/js/vendor/stringify.js | ||
{{root}}/js/runner/utils.js | ||
{{root}}/js/vendor/loop-protect.min.js | ||
{{root}}/js/runner/proxy-console.js | ||
{{root}}/js/runner/processor.js | ||
{{root}}/js/runner/sandbox.js | ||
{{root}}/js/runner/runner.js | ||
{{root}}/js/runner/index.js | ||
# v1-{{version}}-{{open}} | ||
|
||
# prevent all network traffic | ||
# only allow these CDNs | ||
NETWORK: | ||
https://code.jquery.com/ | ||
|
||
FALLBACK: | ||
* /runner | ||
{{#if open}} | ||
* | ||
{{else}} | ||
{{root}} | ||
{{root}}/js/prod/runner-{{version}}.min.js | ||
https://maxcdn.bootstrapcdn.com | ||
https://ajax.googleapis.com | ||
https://cdn.firebase.com | ||
https://cdn.jsdelivr.net | ||
https://cdn.popcornjs.org | ||
https://cdn.ractivejs.org | ||
https://cdn.rawgit.com | ||
https://cdnjs.cloudflare.com | ||
https://code.jquery.com | ||
https://fb.me | ||
https://modernizr.com | ||
https://rawgit.com | ||
https://unpkg.com | ||
https://www.promisejs.org | ||
https://yui.yahooapis.com | ||
https://zeptojs.com | ||
https://aui-cdn.atlassian.com | ||
https://cdn.sencha.io | ||
https://code.getmdl.io | ||
https://code.ionicframework.com | ||
https://da7xgjtj801h2.cloudfront.net | ||
https://enyojs.com | ||
https://extjs.cachefly.net | ||
https://nightly.enyojs.com | ||
https://static.jsbin.com | ||
https://vjs.zencdn.net | ||
{{/if}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
<!-- {{#unless pro}} --> | ||
<html manifest="/manifest.appcache?user={{username}}"> | ||
<html manifest="/manifest.appcache"> | ||
<script>console.log('wrapper ready')</script> | ||
</html> | ||
<!-- {{else}} --> | ||
<!-- <html></html> --> | ||
<!-- {{/unless}} --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Just curious, what was the reason to use
sandbox.helpers.urlForStatic(undefined, true)
instead ofsandbox.helpers.urlForStatic(undefined, req.secure)
?