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
2
votes
0 answers

Expiring Headers not detected by Speed Check Services

I've set this expiring headers rules ############################################ ## Add default Expires header ## http://developer.yahoo.com/performance/rules.html#expires # Enable expirations ExpiresActive On # Default…
BigBlack
  • 163
  • 2
  • 12
2
votes
1 answer

Youtube sends wrong expires date

I loaded an Youtube video, and was checking the Network tab in the Chrome inspector. The weird part is the response header expires show a wrong date, see: expires:Tue, 27 Apr 1971 19:44:06 EST Does some one understand if this is correctly…
2
votes
1 answer

Htaccess Expires Header in Multiple Directories

Somehow I need to confirm how htaccess expires headers works when used in the home directory as well as subdirectories. Let's say I have this in the home directory's htaccess: ExpiresActive On ExpiresByType image/gif "access plus 1 month" Then…
2
votes
1 answer

How do I set expiration headers for css.php?

I use Zend framework and I have lot of CSS file like this http://www.example.com/css.php?request=application%2Fthemes%2Flove%2Ftheme.css&c=2146&pageStart=15376&pageEnd=256358 How do I set expiration headers for css.php ? In fact my .htaccess…
Rocstar
  • 1,427
  • 3
  • 23
  • 41
2
votes
1 answer

Reduce Expires Header SEO

I am using Wordpress for my Content management system. After a while I am trying to make it better performance wise and the tools I am using to analyse my website is Gtmetrix. I have done a lot of performance optimization but there is one problem I…
MMTDesigner
  • 172
  • 1
  • 14
2
votes
0 answers

Node js with express how to enable cache for static files

I have tried all the possibilities. Following are my response headers HTTP/1.1 200 OK Expires: Sun, 20 Dec 2015 03:53:42 GMT Accept-Ranges: bytes Cache-Control: public, max-age=604800 Last-Modified: Wed, 02 Dec 2015 15:49:21 GMT Etag:…
2
votes
0 answers

Nginx is not setting Expires and Cache-Control headers

Chromium Dev Tools complain about all the resources being "explicitly non cacheable", although I'm explicitly adding the relevant directives in my config. I have this file in /etc/nginx/sites-enabled/, which is included by the main config: upstream…
rubik
  • 8,814
  • 9
  • 58
  • 88
2
votes
2 answers

Http headers: Expires

Expires Headers are rather simple in how they work. They tell the browser how long to store a file in the cache so subsequent page views and visits they don't have to download the file again. You are right to assume Expires Headers don't improve…
Pooya sanaei
  • 331
  • 2
  • 8
2
votes
0 answers

Expires headers - why do I still get an error in Google Pagespeed Insights?

I've included the following section in my htaccess file. However I still get an error for 3 js files when I run Google PageSpeed Insights. The reason may be obvious but I can't see it. Donald # BEGIN Expire headers ExpiresActive On ExpiresDefault…
Donald
  • 21
  • 2
2
votes
2 answers

Varnish expires header configuration

Please help me in adding expires header in varnish configuration. max_age is already defined in vcl_fetch and need to add expires header according to the max_age.
Sujith
  • 93
  • 3
  • 10
2
votes
3 answers

nginx Expires header and reverse proxy not working

I am trying to configure an Expires header for static files on nginx (0.7.67). The static files are served from a Golang reverse proxy: location /rev/ { proxy_pass http://localhost:8910/; proxy_redirect off; proxy_set_header Host …
Kiril
  • 6,009
  • 13
  • 57
  • 77
2
votes
0 answers

Far future Expires header ignored

Following the advice given by Yahoo / YSlow at http://developer.yahoo.com/performance/rules.html#expires I am trying to set a far future Expires header for my images. In my .htacess I have: Header unset…
martin
  • 393
  • 1
  • 6
  • 21
2
votes
1 answer

Is HTML5 appcache better than using expires headers or localstorage?

consider the following scenario: site/app is only used online - requires active internet connection; all files have proper expire header settings; forcing file refresh can be handled via something like myFile.css?v=2 and…
Carlos Ouro
  • 565
  • 6
  • 16
2
votes
2 answers
2
votes
3 answers

content-type related nginx expires header

Is it possible to set a content-type dependent expires header in nginx? I'm quite new to nginx and tried the following: location ~ /files\.php$ { ... if ($content_type = "text/css") { add_header X-TEST1 123; …
dompie
  • 711
  • 1
  • 7
  • 12