spring-mvc-cache-control | Spring MVC Cache Control | Model View Controller library
kandi X-RAY | spring-mvc-cache-control Summary
kandi X-RAY | spring-mvc-cache-control Summary
Spring MVC Cache Control is an extension to Spring MVC that aims to simplify implementing HTTP/1.1 Cache-Control headers for annotated MVC controllers.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Notifies the cache control header
- Create cache control header value
- Returns the CacheControl annotation associated with the given request and handler
- Assign the CacheControl header to the given response
- Create the expires header value
- Get the cache - control policy value
- Returns a page of personalized accounts
- Display the account balance page
- This method shows the home page in the model
- This method is used to display an application page
- Display a page of directions page
spring-mvc-cache-control Key Features
spring-mvc-cache-control Examples and Code Snippets
Community Discussions
Trending Discussions on spring-mvc-cache-control
QUESTION
How to set Cache-control: private with applicationContext.xml in Spring 4.2 or later?
Background:Cache-control:
HTTP headers can be set from applicationContext.xml
in Spring 4.1 like this:
ANSWER
Answered 2017-Sep-12 at 08:46It seems to be there is no XML out-of-the-box support in Spring 4.2+. As you can see here, there is no set
method for cacheControlMappings
of WebContentInterceptor
, so there is no chance to write values from XML configuration into it; and this map is intended to store url-cache-control mappings. However, CacheControl
class has public cachePrivate
method, that is possible to be used for registering custom configurations (I think that could be done with respect to dev or prod profiles); for example:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install spring-mvc-cache-control
You can use spring-mvc-cache-control like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the spring-mvc-cache-control component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page