My website is a online music portal with online playing system.
When user play a song, it is served by nginx server on port 8080 on my server.
The problem is when the song has finished playing, the player repeats the song. But every time it replays, it makes another call to server and starts downloading the file again to play.
Previously i had apache to serve these files. At that time, user just requested file once and replays were played from his cache. How can i achieve this using nginx
[I am not using any script like php or so to serve the file. It's just direct link. Like http://www.myserver.com:8080/music/song1.mp3]