DEV Community

Discussion on: Dockerize your React app

Collapse
 
vitomanu96 profile image
vitomanu96 • Edited

In CRA all the file under /static folder can be cached without problem (they include hash in their filename). So se paragraph "Optimizing static assets" can be improved.
Just the file under the "public" folder cannot be cached by the browser.

However nginx has a optimal built-in cache strategy.