I’m using playframework v2 and I have my sitemap files being re-created once a day by an external process. They’re all in the assets folder/sitemap
How do I force playframework to return the file directly from disk?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should get the file (from disk or WS) and render the content in a classic Action, then set the cache with an annotation :
http://www.playframework.org/documentation/2.0/JavaCache
Or you can achieve the same behavior with a job.