One last thing

If you host your content on an external domain we need your CORS headers to expose statistics for us to be able to analyze your data.

You can test if you need to change anything here.

Learn about CORS
Got it!

How to test

If you would like to tinker around, simply adding the GRETA_TESTING parameter before loading Greta will give you the output logs, and you could see the traffic going through peer-to-peer and cache on your console. To simulate another peer, simply spin a second browser in incognito, point it to your local environment again, and watch for the logs on the dev-tools console! The 4 screenshots below are showing what your terminal should look like after following these steps.

Loading an example page with the GRETA_TESTING flag. The page contains 4 images.

Reloading the page should be much quicker as the images are now provided by the cache algorithm.

Opening an incognito tab on the same url will make the two browsers connecting to one another and transfering the images through peer-to-peer instead of going to the server.

Going back to the regular browser now indicates that it transmitted the data through the peer-to-peer channel.