Skip to main content

All Questions

Tagged with
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 ...
jijonbo's user avatar
  • 11
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/...
ka3ak's user avatar
  • 3,241
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 ...
Adam's user avatar
  • 3,013
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 ...
Anurag's user avatar
  • 397
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 @...
Sam's user avatar
  • 53
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 ...
Juraj Mrska's user avatar
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 ...
mangei's user avatar
  • 837
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 ...
vibetribe93's user avatar
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:...
Marcin Warycha's user avatar
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....
user avatar
-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 ...
aisensiy's user avatar
  • 1,518
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. ...
Srikanth Suresh's user avatar
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....
Mukun's user avatar
  • 1,836
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) ...
Juneyoung Oh's user avatar
  • 7,662
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"...
Mat Mar's user avatar
  • 45

15 30 50 per page