Relative Content

Tag Archive for javaspringspring-bootunity-game-enginetomcat

Spring app is not available until download finishes

I have basic Spring app which takes an URL from user and gets spesific download link from website. It uses Jsoup and playwright in the background. The returned link is mp4 so it won’t start to download automatically on mobile devices, and because the link is external, download attribute didn’t work. I came up with the idea I created download method act as a relay. When I run project on local, it works. I deployed the project to the VPS using tomcat and using nginx reverse proxy. Project works, but site is not accessible in the same profile of browser (it works on incognito or different browser etc. Also I’m able to open new tab in Chrome on IOS and download another video) until download finishes. I also dockerized the app, but still same thing happens. Not just this project subdomain, but whole domain and subdomains didn’t work. Here’s the download method