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
1
vote
0 answers

Expires and 304 not modified request

Why when i was setting Expires and disabled Etags, I still getting 304 response? This is my .htaccess file: Header unset Pragma FileETag None Header unset ETag #Expire Header Header set Cache-Control…
1
vote
1 answer

Customise htaccess Expires header setting for cache control for home, category URLs

I am using following code in .htaccess to set Expires header status in WordPress site and its working fine. ## EXPIRES HEADER CACHING ## ExpiresActive On ExpiresByType image/jpg "access 1 year" ExpiresByType image/jpeg…
Jai
  • 119
  • 7
1
vote
0 answers

Can a server force expiration of another HTTP resource?

Let's say we have an HTTP server that handles two URLs: http://server/foo and http://server/bar. And let's say we have only one HTTP agent ever hitting those URLs. The server will add distant-future cache headers on requests to /foo because, most of…
1
vote
1 answer

Retrieve expiration date for tiktok video

I got a tiktok video direct URL that I would like to analyze and retrieve its expiration date. After analyzing its headers, I found some interesting data, but Im unable to find out its expiration date. I suspect that parameter "l" includes it, but…
1
vote
0 answers

alternative for mod_pagespeed for IIS

Possible Duplicate: Is there an equivalent to mod_pagespeed appache module but for IIS? Is there an alternative for mod_pagespeed for IIS? I want to do some smart-caching and set the expires headers in a smart way.
user751939
  • 11
  • 1
1
vote
1 answer

How can I enable expires headers for my static content in my IIS 6 ASP.NET MVC web app?

We are running a ASP.NET MVC 2.0 web app and it's running on Windows Server 2003 with IIS 6.0. I understand it would be easy to implement client caching if we used IIS 7. However, that is something I don't have control over. Also, it would probably…
Jason
  • 17,276
  • 23
  • 73
  • 114
1
vote
0 answers

Codeigniter shopping cart not working after adding expire headers via .htaccess

I am developing a shopping cart website with codeigniter. when I add expire headers cart functionality not working properly. give below is my .htaccess code RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond…
Yadhu Babu
  • 1,503
  • 2
  • 13
  • 25
1
vote
0 answers

Duplicate expires headers on JS causing caching issues

We are seeing a problem where we have deployed updated JS to web-server. In preparation for this change, caching behavior was supposed to be changed from 8 days to 8 hours, but it seems something has gone wrong. Instead, when we inspect the JS…
1
vote
2 answers

Wordpress - Expires Headers in .htaccess won't work

According to www.gtmetrix.com 2 components are without a far-expiration date: I added at the end of my .htaccess ExpiresActive on ExpiresDefault "access plus 1 month" …
Ramón Wilhelm
  • 967
  • 2
  • 18
  • 39
1
vote
0 answers

How do i set expiration on CSS, JS and Images for windows server (need use .htaccess or web.config)

I get below error when i run google page speed tool Leverage browser caching Setting an expiry date or a maximum age in the HTTP headers for static resources instructs the browser to load previously downloaded resources…
1
vote
1 answer

How add Expires headers on Css.php file (Scaffold)

I use SocialEngine for my website, I want to speed my website so I have use Gtmetrix and PageSpeed to see what I can improve I see that Add Expires headers have 0/100 .. I have do research but how I can add on Exprires headers my CSS that look like…
Rocstar
  • 1,427
  • 3
  • 23
  • 41
1
vote
1 answer

Rewrite Rules and Expires-Header with Apache/nginx

I come today with a problem of browser caching static files. I have a Prestashop Website on a Plesk server running with Apache and Nginx. Prestashop generates a .htaccess file with apache rewrite url rules : RewriteRule…
JazZ
  • 4,469
  • 2
  • 20
  • 40
1
vote
1 answer

Expires headers are being ignored by browsers

I have added expires headers to my .htaccess file, they don't really seem to work though. When checking the result in both Firefox and Chrome (by pressing F12, chosing the Network option and hitting F5 to reload the page), I notice that the rules…
user3915624
1
vote
1 answer

Setting expiry on static resources with htaccess

just got to know that setting expiry dates for static resources make your site go fast and jump in rankings. My question is: Does browser checks create date of the static resource? If I make change to a css before 1 month, does server sends fresh…
Ashutosh
  • 4,371
  • 10
  • 59
  • 105
1
vote
1 answer

add expire headers for static content google recaptcha

I tested my site using Yslow and it states There are 7 static components without a far-future expiration date. https://www.google.com/recaptcha/api.js?onload=myCallBack&render=explicit&hl=en http://www.searchanise.com/widgets/v1.0/init.js Now I…