All Questions
Tagged with cache-control spring
32 questions
0
votes
0
answers
232
views
Tomcat some image file response always cache-control "no-cache, no-store, must-revalidate
//////////////////// Configuration information ////////////////
Environment :
java : oracle 8
Spring4 xml config
eclispe version: 2020-06(4.16.0)
was-server: tomcat 8.5
...
0
votes
1
answer
432
views
Are "max-age" and "no-cache" from "Cache-Control" header mutually exclusive?
Do "max-age" with a positive value and "no-cache" make sense?
The documentation doesn't mention whether they are mutually exclusive https://developer.mozilla.org/en-US/docs/Web/...
6
votes
0
answers
293
views
Set cache-control for specific file/folder in spring
In a 5.2.9 spring project with
<mvc:resources location="/, classpath:/META-INF/web-resources/" mapping="/resources/**"/>
in webmvc-config.xml. Static images are served with ...
0
votes
1
answer
759
views
How to set cacheControlMappings in WebContentInterceptor in Spring 5 Xml
I want to add cache-control directive (set both public and max-age seconds) for a couple of URLs in Spring MVC and I want to do those changes via applicationContext.xml only.
I am trying to set the ...
0
votes
1
answer
2k
views
Exclude specific field from caching spring boot
I am trying to exclude a specific parameter (param 4) from caching in my rest spring boot application
I am new to the caching and not sure how can we exclude the specific parameter from caching
@...
0
votes
0
answers
195
views
Spring Cache handling Cache-Control=no-cache
In our REST service we are using redis with spring cache. We need to handle some requests with header: Cache-control=no-cache. These requests should not recieve the data from cache.
We use a condition ...
1
vote
0
answers
395
views
Configure Cache-Control for multiple RestController endpoints in Spring
I have an Api endpoint with Spring 5 as @RestController and I want to specify the Cache-Control for all endpoints at once (via a Config or an Annotation,...).
Currently I do this on every single ...
1
vote
0
answers
445
views
Spring cache-control issue
I am building a web application in springboot. It is secured by springboot-security.I want to cache all my public resources such as images, javascript and css files, for let's say a week. I need ...
0
votes
1
answer
307
views
Cache-Control no affect in spring 4
My application: Spring MVC 4.
I have set in my XML:
<mvc:resources mapping = "/resources/**" location = "/resources/" cache- period="259201" />
I excepted that in my response will be set:...
0
votes
1
answer
928
views
Prevent caching javascript file, Spring
I have my project structured this way :
src/main/java
com.test.project
com.test.project.configuration
com.test.project.controller
com.test.project.model
com....
-1
votes
1
answer
470
views
Why poor support for http cache control in Spring MVC? [closed]
Read book REST practice and get a better understanding of web scale out base on the cache. But when I try to add http cache control in my Spring Boot project I found nothing special to the cache ...
1
vote
0
answers
111
views
Duplicate instances of "no-store" header in response
I was trying to set response headers to my spring project. I wanted to set Cache-Control to "no-cache , no-store" . However , two instances of no-store are getting appended to cache-control header. ...
1
vote
0
answers
748
views
spring boot cache busting angular partial
In my spring MVC + angular application . I have configured cache busting using
spring boot properties as below
spring.resources.cache-period=31536000
spring.resources.chain.cache=true
spring....
3
votes
2
answers
2k
views
spring security - how to remove cache control in certain url pattern
I am trying to filter some url pattern to caching.
What I have attempted is put some codes into WebSecurityConfigurerAdapter implementation.
@Override
protected void configure(HttpSecurity http) ...
1
vote
0
answers
2k
views
Java Spring Cache-control set max age
I'm tryint to set "Cache-control: max-age=60" to don't get data from server more often than 60 seconds. But I really don't know how to do it. I tried something like this:
@GetMapping(value = "/movies"...