Reputation: 767
I have a servicestack server that sometimes has to serve a static .cab file for download. If the file is in the server directory, I run the server, test with a browser 127.0.0.1:3105/607.cab and works. But if the server is already running, I copy the 607.cab in the directory, and receive a 404 not found. Then I close and restart the server, and it downloads... Any hint?
Thanks
Upvotes: 3
Views: 162
Reputation: 143369
The files in the top-level directory is cached to avoid File System hits to determine if the request is for a static file or not.
Put the content in a subfolder (which is not cached).
Upvotes: 2