So it has to do with my shift8 cdn plugin i disabled “enable cdn” on the settings and it works fine now. Very strange.
Any solution to have the cdn enabled or is it a plugin issue?