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
0
votes
1 answer

Tomcat´s ExpiresFilter not working on index page

I added the following code to the web.xml of my Tomcat (version 9) server: CachingFilter org.apache.catalina.filters.ExpiresFilter
Franz Deschler
  • 2,456
  • 5
  • 25
  • 39
0
votes
1 answer

Cache header for tilelayer png of mapbox

I use mapbox but i have one problem for validate this in Gmetrix There are 4 static components without a far-future expiration…
0
votes
1 answer

PageSpeed Insights wrongly reporting cache policy?

Why is PageSpeed Insights failing the cache policy audit? (I have marked one of the failing resources showing its response headers later): These are the response headers for the marked resource: The expiration headers at the top of my .htaccess: #…
Oscar Galo
  • 339
  • 2
  • 12
0
votes
1 answer

How long should we set the HTTP Expires or Cache-control: max-age header?

Let's say if the bundle.js is 750kb, is it true that if you set it to "never expire" or "expire in 10 years", then the browser doesn't need to fetch that file and therefore can make your website and pageload faster? (By the way, it is said that…
nonopolarity
  • 146,324
  • 131
  • 460
  • 740
0
votes
1 answer

Add Expires headers Plesk

My website gets Add Expires headers error from pingdom tools. I searched and found solution adding the codes below to .htaccess file. ExpiresActive On ExpiresByType image/jpg "access 1 year" ExpiresByType image/jpeg "access…
sipdorus
  • 963
  • 1
  • 12
  • 28
0
votes
1 answer

How to add expire header in nginx?

We have added expire header in /etc/nginx/site-available/default, but not reflecting in gtmatrix/google speed, we also check with curl website. Please check our code below, server { root /var/www/html; location / { index index.php…
Tush
  • 189
  • 1
  • 10
0
votes
2 answers

Cannot add Expires headers in WordPress

Been trying to get rid of the "Add Expires headers" in GTmatrix, with no success. I've installed the WP Fastest Cache plugin and tried a bunch of different variations to .htaccess that I found on stackoverflow and some other websites where people…
MAR
  • 553
  • 2
  • 7
  • 17
0
votes
1 answer

Best way to use Expire header (or versioning) with CloudFront

My CloudFront distribution is backed by an S3 bucket. I have a file that is updated very frequently (every 10 minutes) which contains real-time data and is about 100k in size. This file is used by our desktop software and has a constant name/url. I…
Trygve
  • 1,317
  • 10
  • 27
0
votes
1 answer

How can I leverage browser cache and .htaccess are not cleared by my varnish configuration?

I want to leverage browser caching for the following cacheable resources: JS/TTF/ICO/jpeg/png/css/... I'm testing using GMETRIX, but I keep failing on LEVERAGE browser cache. I think some of the rules in my .htaccess are being voided in my Varnish…
John Doe
  • 67
  • 10
0
votes
2 answers

How to expire a webpage after certain period of time; and how does it affects in the Google's Indexation?

I have a question about multi-vendor e-commerce portal. Sellers offer particular offer for a time-being. For each offers, a new webpages are created, they are listed in site-map and crawled by Google. My client doesn't want to show those pages once…
0
votes
1 answer

Is setting Expires Header in .htacess a terrible idea for a Woocommerce site?

I have added the following to my .htacces file in order to set the expiry time for the various files types. The speed impact on my woocommerce site has been huge - it's flying now. And everything seems to work. But surely this is a bad idea as if…
southafricanrob
  • 331
  • 3
  • 15
0
votes
2 answers

Add expires header for all files except specific files

I'm trying to add expires headers to all files except some specific files. In fact, I'm using a caching tool, that adds the following code to my htaccess: # BEGIN LBCWpFastestCache
TheKidsWantDjent
  • 1,179
  • 1
  • 9
  • 20
0
votes
1 answer

Not able to set Expiration date of a cookie on Apache server(Apache 2.4)

We are implementing an Apache (Apache 2.4) server and we want to set expiration date for cookies. In the configuration file, we used the command like this Header set Set-Cookie testcookie=%{UNIQUE_ID}e "expr=-z %{req:Cookie}" Header set…
Jeff
  • 21
  • 2
  • 11
0
votes
0 answers

How do i set expiration on CSS, JS and Images for windows server

How do i set expiration on CSS, JS and Images for windows server
0
votes
1 answer

Changes in htaccess Expires header not reflecting in browser

I have set all JS on my site to cache for one week. However, there are specific files that I need to be refreshed at a higher frequency. Hence I have used FilesMatch to effect the exception in my .htaccess file:
TheLearner
  • 2,813
  • 5
  • 46
  • 94