staticallyio / statically

The CDN for developers.
https://statically.io
MIT License
585 stars 91 forks source link

Issues in the first proxy #64

Closed warudin closed 4 years ago

warudin commented 4 years ago

When enabling the WordPress plugin on our sites, I'm seeing the error below, accompanied with errors for all other files that are being served through the CDN.

When following the link, the file seems to be unavailable on the CDN. A few days ago the service was working fine. Did something change?

The resource from “https://cdn.statically.io/sites/noesteijver.nl/wp-includes/js/admin-bar.min.js?ver=5.3.2” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).

fransallen commented 4 years ago

Hi @warudin,

Thanks for reporting.

I'm sure there are no changes that should affect /sites/.

Is this the first time you have activated the plugin? If so, it could occur due to network problems between Statically and your host, where the content cannot yet be proxyed and gives a 404 error which is HTML. Would you check it now, I've improved a few blocks so that it can work on your site.

warudin commented 4 years ago

Hey @fransallen 👋

Looks like that solved the problem for that specific site, I've turned Statically off because I was just doing some tests on this site and some code needs to be edited for it to work completely.

The actual problem occured on another site (schenkeveldadvocaten.nl), this one is still showing the same error messages for me. This site is hosted at the same company but on another server. You say you improved a few blocks, do you need to do the same thing for other sites is ours?

Another site with the samen problems is fiksch.nl, it's hosted by the same server as noesteijver.nl.

fransallen commented 4 years ago

Glad if it's resolved.

Should work well for any website now, try updating the plugin to 0.2.0 and check whether it helps?

warudin commented 4 years ago

For schenkeveldadvocaten.nl and fiksch.nl the problem still occurs, unfortunately. Both sites are at version 0.2 of the plugin.

I noticed that image files seem to work, but CSS and JS files don't.

fransallen commented 4 years ago

Do you run some kind of firewall? It seems I can't access your site from HTTP or HTTPS inside of the network, would you whitelist this IP addresses 103.200.4.111, 103.200.4.112,

then try this tool to test:

https://demo.statically.xyz/www.schenkeveldadvocaten.nl https://demo.statically.xyz/fiksch.nl

warudin commented 4 years ago

I do use the plugin Defender Pro by WPMUDEV. I've added the mentioned IP-addresses in the whitelist, but to no avail. I will contact our hosting partner to see if they've blocked the addresses somewhere in their systems. Keep you posted.

You say you can't view the sites 'inside of the network'. Does this mean you can't view the sites when using your browser either?

fransallen commented 4 years ago

Just from Statically network, browser OK.

I think I'm only blocked from your www.schenkeveldadvocaten.nl host.

warudin commented 4 years ago

Hi Frans,

Our hosting partner blocked the traffic, I guess an automated blocking system jumped to conclusions about the traffic. The sites are working with statically.io now. Thanks so much for helping my out!

Any chance you could look to this issue as well? https://github.com/staticallyio/statically-wp/issues/2