Cache control not getting set via servelet

I tried to set cache control headers to response via Java filter ,but it seems they are not getting added in repose. Instead of the headers I have set via code I can see another header ** Cache-Control: max-age=15552000 **. I use the below code in f...
more »

2017-10-04 09:10 (0) Answers

Spring @ResponseStatus returns empty response

In my Spring API I wanted to handle responses from operations like create, put and delete with Spring's annotation @ResponseStatus. Every endpoint works correctly but they always return empty response. Why response from annotated endpoints is empt...
more »

2017-08-29 12:08 (1) Answers

When is RESOURCE NOT FOUND (404) appropiate?

I have been having long discussion with colleagues about whether responing with a 404 or 400 (BAD REQUEST) given different bad parts of the url. Suppose we have a endpoint that provides products. But the products are segmented and depend on things l...
more »

2017-05-10 14:05 (1) Answers

Incomplete Node HTTP.Response

My application builds a custom array of integers that need to be concatenated in order to create a dynamic request for economic data. Once my variable options gets created, I push it through an http request and try to parse the response, where I'm g...
more »

2017-04-03 00:04 (2) Answers

Mock a Wreq Response

I want to manually create a Response in order to mock a web server, similar to this blog post. However, the Network.Wreq library that I'm using doesn't reveal the constructor for Response. How do I create a Response manually? ...
more »

2016-12-05 14:12 (1) Answers

Symfony no expire settings in response

I have a website where I am working with Responses. But I didn't set any expires or maxage settings to the responses. My website gets slower and slower every week so I cleared caches. The clearing process took some minutes (!) but after that, the web...
more »

2016-10-24 12:10 (0) Answers