Closed eatonphil closed 4 years ago
This is expected if using base Python HTTP server.
You need something to redirect requests to index.html. You might want to check out: https://www.npmjs.com/package/es-dev-server
That makes sense, thanks. The cached behavior threw me off.
Description
Doing a hard-refresh of a non-home page view causes a 404 in the starter kit.
Live Demo
None.
Steps to Reproduce
polymer init
yarn build
cd build/es6-bundled && python3 -m http.server 9091 && open localhost:9091
)Expected Results
A hard-refresh should load the page correctly. A hard-refresh on the home page (http://localhost:9091) loads successfully.
Actual Results
A hard-refresh always causes the non-home page view to 404. Even after a hard-refresh if you soft refresh the non-home page loads correctly.
Browsers Affected
Versions
The yarn.lock file is attached. yarn.lock.txt