Questions tagged [expires]

34 questions
10
votes
2 answers

Why is "29030400" seconds used as a common value for cache expiration?

I noticed that 29030400 is used very often in the Expires directives for static files. Google recommends to cache this kind of files up to 1 year (1 month at least). I did the math: 29030400 seconds = 336 days That is about 1 year minus 1 month, so…
heytools
  • 386
  • 1
  • 11
9
votes
3 answers

How should an expired content be handled?

Let's imagine this simplified case: An auction website has "auction detail" pages. A few weeks after the auction is over, the "auction detail" page is no more available. We are simply serving a HTTP/1.1 410 Gone with the page providing the…
Toto
  • 345
  • 2
  • 13
7
votes
2 answers

What is the default behavior of Cache-Control

If no private nor public were defined in the cache-control, e.g. Cache-Control: max-age=31461276 What is the expected behavior?
Yoga
  • 319
  • 1
  • 4
  • 13
7
votes
1 answer

Can I set a variable "Expires" in Amazon S3?

I have a ton of files in Amazon S3 (served via Cloudfront) for which I have added an Expires header of Mon, Jan 1 2024 11:11:11 GMT However, I have recently learned that setting an Expires header more than one year in the future violates the HTTP…
DisgruntledGoat
  • 21,658
  • 5
  • 56
  • 101
6
votes
2 answers

Defunct website taken over by spammer. How to stop them?

A friend of mine used to publish a small literary fiction magazine, both in print and on the web. In 2011 she announced that she was quitting, put a note on the website, and carefully unwound the subscriptions. She continued hosting the site (with…
Robert
  • 163
  • 2
6
votes
2 answers

How should short-lived expired pages be handled for SEO?

I have classified ads website with 15,000 ads. Currently daily a lot of ads are deleted or expired so are no longer available. What is the best way for to manage this missing pages for search engines (Google)? Redirect all to homepage (301)? or…
RoX
  • 61
  • 1
5
votes
3 answers

expires headers and forcing cache-loading instead of 304?

So here is a little mystery. Google Analytics javascript somehow always loads from browser cache on F5 (in Firefox). I can not get the same thing to happen with my own scripts. Here are the headers that come back on initial request: For…
leeoniya
  • 221
  • 3
  • 4
4
votes
1 answer

How to specify expiry to a (css/js) files of a website in a shared hosting?

I have read the other answers but all are based on editing the .htaccess file. Is there any way to set expiry without touching the .htaccess file?
4
votes
1 answer

Getting expired domain name - most effective route?

There is a domain name I have been wanting for years that was used as a parked page (read: cybersquatted) that has entered into WHOIS's redemptionPeriod stage. The domain has been expired for 61 days now - after contacting the Registar, they…
kcdwayne
  • 713
  • 1
  • 7
  • 12
4
votes
2 answers

SEO: best way to deal with short lifetime URLs?

I am currently in the process of redesigning a job advert site and am trying to put a lot more effort into my SEO. My question is how should I deal with the URLs that point to job adverts when the advert expires. The options I have thought of so far…
Mike Norgate
  • 143
  • 3
3
votes
3 answers

How do I add the an expires header for external URL components as suggested by GTmetrix and YSlow?

I am trying to decrease the loading time of my website which is hosted in Bluehost. So when I check the performance scores via GTmetrix under YSlow section it mention to "Add expire headers" for four static components as below. Add Expires…
3
votes
1 answer

Logged Out Too Soon; PHP Sessions Expire Too Quickly. Is this a Linux, CentOS, Cookies, CPanel problem?

Recently, I've been getting logged out sooner than expected on several websites that I manage on Linux servers. The problem started spontaneously a few months ago. At the time, I had not made any recent changes to the website code or the CPanel…
Photon
  • 51
  • 1
  • 4
2
votes
1 answer

how to set Meta "expires" if I am not sure of expiration date?

I have an ad website. Users can post ads, and they can also renew them (renewing their expiration date). I setup delete rate on user items at 3 month after expiration date, but if users have renewed them, that expiration date will also be renewed.…
naneri
  • 147
  • 7
2
votes
1 answer

http header if not modified help

I am having a little trouble with sorting out my HTTP headers for my sites. I am currently setting up Varnish on my server and so trying to get everything working correctly. All my sites are WordPress except for one which is Joomla if this makes any…
WPDEVE
  • 21
  • 1
2
votes
1 answer

Purchasing an expiring .co.uk domain

There is a .co.uk TLD that is currently expiring (it’s currently 45 days through its 90/92 day expiration period). I would like to purchase this domain when it comes on the open market. I’ve looked into several domain name backordering services…
sam
  • 4,645
  • 5
  • 40
  • 68
1
2 3