playframework 2.0 - How to set the header of a response in production mode in play 2 -
i made website lets users upload images , serves them back. lower load i've tried use client side caching so:
byte[] data = files.readallbytes(path); response().setheader(cache_control, "max-age=3600"); response().setheader(etag, image); return ok(data);
this works fine in development mode (play run) when run site in production mode headers gone , nothing cached.
thanks
Comments
Post a Comment