Caching issue with Node after switching to Docker?

时间:2018-07-25 04:39:44

标签: node.js docker docker-compose strapi

Currently in the process of migrating my Node application (built on Strapi) to Docker, and running into an odd issue.

My application consists of a Strapi app serving the backend, with a static React site in the /public directory. The idea is that the root path is the React site, with the ability to access the admin panel and any other routes by hitting their respective paths.

If I access /admin or any other path directly from a fresh incognito window, I'm able to access everything per usual. However, once I visit the static React site in that session, every other path will only render the React site. Furthermore, even when I stop the Docker container, the static site will still render for any path.

This behavior leads me to believe there is some caching going on that I'm not accounting for, but I'm not sure where to investigate. Any insight would be appreciated.

0 个答案:

没有答案