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

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -