Localhost access normal IP access incorrect

writes a simple express + React page, accesses the back-end data, and the React component displays

after publishing, http://localhost:3001/supplies/31001 visit

ip+port json

localhost

IP+port

Why?

Jun.07,2021

is not caused by service-worker 's cache.

After

service-worker takes effect, some resources may be forced to be cached, most likely including static resources.

you can disable browser caching or remove service-worker, from the code to force refresh several times to see if this is the reason

Menu