I use express to serve static files on local disk.
app.use('/media/', express.static(path.join(__dirname, 'media'), {redirect: false}))
And under media folder, I have a folder named image files. In that folder, I have a file called image.png.
When I use http://localhost:3000/media/image%20files/image.png in the address field of my browser, express always redirect the request to http://localhost:3000/media/image%20files/image.png/ that adding a trailing slash.
If I remove the space in the folder name, it serves the image file.
What I did wrong? Is this a bug?
Thanks,
To answer my own question so if anyone runs into the same issue they have a possible answer.
I cleared Chrome cache and the problem is gone.