I have manually built an angularjs application, and uploaded it to Netlify.
I am having some problems understanding why I get a status 301 on some request, and a 200 on other requests that are located in the same folder (under dist/scripts).
I have a script file:
hostname/scripts/script.123.js (this gives me 301)
hostname/scripts/vendor.987.js (this gives me 200)
When I build my application, there is a grunt task concatenating all .js files, and create a new file with a new id (e.g. 123).
The 301 redirect disappears after a while, but it usually happens right after I create a new build and upload it. The script.123.js file gets renamed to e.g. script.456.js. The vendor’s id usually stays the same, as it only updates if I add/change node_modules or bower_components.
I thought maybe there were some caching issues related to the 301, but I am not sure. Any suggestions or help is appreciated.
The behaviour is somewhat different from browser to browser, and incognito window. In some browsers the response is 200 ok, while others give me 301. It seems that the response turns to 200 ok after a certain amount of time though.