Caching on single page application

As far as i understand. in multi page application we will handle different route on backend so different route will be cache on cloudflare and i set the ttl (this is what i do before with mpa)
But now with single page appication. on different route. without the instruction from the backend. will the browser automatically know to use the static html + js from the cloudflare cache?
Here is my backend code:
app.get('*', (req, res) => {
        const filePath = path.resolve(
            __dirname,
            '..',
            'client',
            'build',
            'index.html'
        );
        res.sendFile(filePath);
    });
Was this page helpful?