caching - PlayFramework 2.2.x Java built-in cache and CORS -


i have play 2.2.6 application , need use both cache , cors. currently, i'm handling cors headers explained in this question.

i have route (e.g. /users) want cache using @cached annotation:

@cached(key = "users") public static result users() {     return ok(tojson(users.finder.all())); } 

now, if hit /users 2 requests, first time, cors headers added correctly expected.

the second time, cache seems used correctly play (the response fast) but cors headers aren't added anymore.

why @cached request missing cors headers?


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -