Make sure resource are loaded with the correct protocol