Autoptimize caching old css URLs on site move
-
Hi Frank,
Got a weird one here. So today I’ve been testing some internal preview mechanisms we have on the server. So the scenario is someone moves their website to us, they get a preview URL. So I imported a site to test but the CSS was lacking FA icons. Looking at the browser console I saw the errors:
Redirect from ‘https://wpnex.us/wp-content/themes/herald/assets/fonts/fontawesome-webfont.woff2?v=4.7.0’ to ‘https://wpnex.us/wp-content/themes/herald/assets/fonts/fontawesome-webfont.woff2?v=4.7.0’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘https://96.125.178.146’ is therefore not allowed access.
If I deactivate Autoptimize the icons do show. So the theme CSS has the URL hard-coded I guess like:
url(//wpnex.us/wp-content/themes/herald/assets/css/../fonts/fontawesome-webfont.eot?
Do you have any idea why they’d show with Autoptimize disabled. If Access-Control-Allow-Origin was the issue surely the console would throw an error with AO disabled?
Just scratching my head a bit on this one.
The page I need help with: [log in to see the link]
- The topic ‘Autoptimize caching old css URLs on site move’ is closed to new replies.