GithubHelp home page GithubHelp logo

cdn_cache's Introduction

cdn_cache's People

Contributors

oros42 avatar phyks avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cdn_cache's Issues

Opentokrtc not working with CDN_cache

Hi,

https://opentokrtc.com/ is not working if I use this CDN_cache with HTTPS Everywhere rule.

Just for more information, opentokrtc offers a webrtc demo, to talk directly in the browser. On the main page (https://opentokrtc.com/), just enter something in the input, to create a chatroom. There, if you have two devices connected which are broadcasting the video from the webcam, you should get your video and the one from the others.

I the rules are enabled, you can only see yours, and a blank screen for the others. If the rules are disabled (and only the rule from googleapis.xml), everything is working fine.

I suspect some failure with a script on this page, but didn't figure out which one it is yet. It seems the only thing from google CDN is a font, and I can access it from my CDN.

Thanks if you manage to get it working :)

Fonts not downloaded

This solution seems to be ok with caching CSS and JavaScript files from googleapis.com, but it seems to fail at downloading the fonts defined in the CSS.

I added a rule to cache those fonts:

[target host="fonts.gstatic.com" /]
[rule from="^https?://fonts.gstatic.com/(.*)" to="https://MY_HOSTNAME/mycdn/gstatic-fonts/$1"/]

as well as the equivalent code on the server side.

When I copy the content of the fonts.googleapis.com CSS into a test HTML file, the font is downloaded and cached correctly. But if put the original [link] tag containing the href pointing to fonts.googleapis.com, HTTPSEverywhere injects correctly the cached CSS since the CSS styles are downloaded as confirmed by the firebug Net panel, but the font itself does not seem to be downloaded, neither from fonts.gstatic.com, nor from the cache where my HTTP server access.log fails to report any request concerning this font.

Can you confirm this, or am I doing something wrong ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.