, 2.

Adding "final HttpServletResponse response" as a parameter, then setting the header "Cache-Control" to "all-cache".


, 3.

Using a Handler Interceptor and using the "postHandle" method provided by it.


, 4.

Cache headers cannot be set for a specific path.


">
MCQs > IT & Programming > Spring MVC >

In an annotation-based Spring MVC controller, which of the following are valid ways to set cache headers for a specific path?

Spring MVC MCQs

In an annotation-based Spring MVC controller, which of the following are valid ways to set cache headers for a specific path?

Answer

Correct Answer:

Using a Handler Interceptor and using the "postHandle" method provided by it.


Explanation:

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

Spring MVC Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Spring MVC Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it