Questions tagged [expires-header]

a HTTP Response Entity Header Field that specifies the date and time after which a response should be considered stale

The Expires HTTP Response Entity Header Field specifies the date and time after which a response should be considered stale. The Expires value must be a date in HTTP-date format.

Example

Expires: Sun, 06 Nov 1994 08:49:37 GMT

Resources

Related Tages

116 questions
5
votes
1 answer

Golang Cookie Max-Age vs Expire

What is differencies between Expires and Max-Age in Cookie struct ? I cannot understand. type Cookie struct { Name string Value string Path string // optional Domain string // optional Expires time.Time //…
SabuhiGurbani
  • 91
  • 1
  • 6
5
votes
1 answer

IE 11 ignoring Cache Control header in response

I am setting Expires filter in web.xml of Tomcat. The header comes correctly in response but still IE is not caching. It is always making the fresh request to…
Yogendra
  • 101
  • 1
  • 1
  • 7
4
votes
1 answer

How do you implement far future expires headers in asp.net with IIS 6

We are running a ASP.NET MVC 2.0 web app and it's running on Windows Server 2003 with IIS 6.0. I know that with IIS7+ you can use: is…
Alex
  • 1,042
  • 3
  • 13
  • 32
4
votes
0 answers

How does browser cache eviction work?

Let me take the worst scenario of browser resource caching I have configured a static resource(with big size) to be cached for long expire (say 1 yr) with the version, so it's get downloaded with each version update. Let's assume I have updated 500+…
HybrisHelp
  • 5,518
  • 2
  • 27
  • 65
4
votes
1 answer

How to solve Google Page Speed: "expiration not specified"

Analyzing an online shop (Shopware) with GooglePageSpeed results in many "expiration not specified"-Lines on every image. I am wondering about because the webserver (nginx) adds Last-Modified-Timestamps and ETAG headers to the response of all…
itinance
  • 11,711
  • 7
  • 58
  • 98
4
votes
1 answer

Setting expire headers and gzipping data via .htaccess

I'm trying to set it up so that the browser will cache the webfonts for a long period and also attempting to gzip them for a faster download. From what I can understand you can do this via your httpd.conf file in Apache or via .htaccess. I'm not…
Brett
  • 19,449
  • 54
  • 157
  • 290
3
votes
1 answer

How to Add Expires headers

I'm using this code in .htaccess ExpiresActive on ExpiresDefault "access plus 1 month" ExpiresByType image/gif "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType image/jpg "access plus 1…
Merkucio
  • 175
  • 1
  • 4
  • 19
3
votes
1 answer

IIS 8.0 add both Expires header and Cache-Control

i can see stackoverflow add's both Expires and Cache-Control for their images , css, js etc, so i am trying to do the same, i tried this article web.config
Shaiju T
  • 6,201
  • 20
  • 104
  • 196
3
votes
1 answer

Expires header based on dynamic Content-Type in nginx

I have a PHP website where some content is user-generated. For example, users can upload photos that get resized and can be requested. I'd like to specify an Expires header (for caching) based on the MIME type (Content-Type response header) in my…
Jonathan
  • 6,572
  • 1
  • 30
  • 46
3
votes
1 answer

Is Expires header not needed now?

I see big player (i.e. akamai) started to drop the Expires header all together and only use Cache-Control, e.g. curl -I https://fbcdn-sphotos-e-a.akamaihd.net/hphotos-ak-snc7/395029_379645875452936_1719075242_n.jpg HTTP/1.1 200 OK Last-Modified:…
Ryan
  • 10,041
  • 27
  • 91
  • 156
3
votes
3 answers

header expires on PHP file with JS output

How to put an expires header on a PHP file which outout a JS file? .htaccess ExpiresActive on ExpiresByType image/gif A29030400 ExpiresByType image/jpeg A29030400 ExpiresByType image/png A29030400 ExpiresByType text/css A29030400 ExpiresByType…
clarkk
  • 27,151
  • 72
  • 200
  • 340
2
votes
2 answers

How to trigger browser html refresh for cached html files?

YSLOW suggests: For static components: implement "Never expire" policy by setting far future Expires header.... if you use a far future Expires header you have to change the component's filename whenever the component changes. At Yahoo! we often…
JStark
  • 2,788
  • 2
  • 29
  • 37
2
votes
1 answer

Thoughts on dealing with expires headers, etags, and content updates?

I've implemented server independent eTags on my site and I'm now looking at adding expires headers to prevent most of the 304 requests. I'm concerned about using long expiration headers since it makes it tough to force a refresh if you need to…
user126715
  • 3,648
  • 3
  • 23
  • 25
2
votes
2 answers

react - axios - api has been blocked by CORS policy error

I solved the "has been blocked by CORS policy" error, but there is something I don't understand, I added a header to the api part and it works successfully in my login form, but in the register part, my code gives a "has been blocked by CORS policy"…
cihatkocak
  • 43
  • 1
  • 6
2
votes
0 answers

What support do mobile browsers have for expires headers?

Is there any good documentation of what mobile browsers support expires headers? I'm mostly interested in: iPhone Android Windows Phone 7
Jason
  • 17,276
  • 23
  • 73
  • 114