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
Post a Comment