i'm using responsecache attribute in 1 simple controller:
[responsecache(duration = 60)] public iactionresult test() { return view(); }
but, in response headers, i'm getting cache-control no-cache:
i have tested same code in other controller this, , it's working fine...
[httpget] [route("getmydtocached")] [responsecache(duration= 86400)] public async task<mydto> getmydtocached(string id) { return await _service.getmydtobyid(id); }
any ideas?
thanks!
Comments
Post a Comment