Questions tagged [s-maxage]
9 questions
9
votes
1 answer
How to set the S-MaxAge CacheControl value in an ASP.NET app?
I'm trying to set the cachability of an ASP.NET resource. So if I goto /foo/show it will show a View for some resource, and cache this for a few hours (for example). To do this, I'm using the OutputCache attribute which decorates my Action Method.…

Pure.Krome
- 84,693
- 113
- 396
- 647
5
votes
1 answer
Sprockets max-age header on heroku
My application.js file name looks like application-b600352536291bc180983d43e6a2407f.js. So it has the md5 cache buster in its name. I have set the max-age option for static assets to 1 hour config.static_cache_control = "public, max-age=3600". But i…

Pratik Khadloya
- 12,509
- 11
- 81
- 106
4
votes
1 answer
How does HTTP header "cache-control: s-maxage=31536000, stale-while-revalidate" work?
I'm using NextJS on my project. For every page requests it adds 's-maxage=31536000, stale-while-revalidate' cache-control rules in response. How are these 2 rules supposed to work together?

Dzianis Sudas
- 364
- 3
- 16
4
votes
2 answers
Is max age relative to last-modified date or request time?
When a server gives Cache-Control: max-age=4320000,
Is the freshness considered 4320000 seconds after the time of request, or after the last modified date?

David Merrilees
- 2,430
- 2
- 16
- 15
2
votes
1 answer
Does it make sense to set Cache-Control max-age=0 and s-maxage= not zero?
Somebody commented on this question about caching:
...using a Cache-Control value of: max-age=0, s-maxage=604800 seems to get my desired behavior of instant client updates on new page contents, but still caching at the CDN level
Will I really get…

cbdeveloper
- 27,898
- 37
- 155
- 336
0
votes
1 answer
jQuery load function ignores Cache-Control max-age
I am using jQuery's load function to get an image (graph) from my server. The graph is received from a REST API protected with Basic Authentication. The image is in the current setup returned with header Cache-Control max-age=0. This is respected if…

swenedo
- 3,074
- 8
- 30
- 49
0
votes
1 answer
its not printing proper no.of grid points on the screen?
int n,m;
float S,K,R,L,dr,dz;
S=4.0f;
K=2.0f;
R=1.0f;
L=2.0f;
dr=0.01f;
dz=0.1f;
n=int((R/dr)+1);
m=int((L/dz)+1);
printf("%d\t%d\t",n,m);
for this iam getting 10,20 grid points but actually the value…

ramulu
- 1
0
votes
2 answers
Symfony2 HttpCache setSharedMaxAge() always 0
I'm trying to get my Symfony2 application to cache a page using the expiration model but it doesn't see to be setting the s-maxage properly and the browser always returns s-maxage=0 regardless what value I set it to.
I'm currently using
public…

Chris Shennan
- 42
- 6
0
votes
0 answers
Windows Batch Programming
I have some files that are automatically generated by an external sources into a local machine each day.
I have batch script, which moves the data from that source folder into a destination folder.
So i would like to move the files using time and…

user3564681
- 1
- 1