Hot answers tagged

6 votes
Accepted

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

As @Evgeniy has already covered in his answer, in order to add HTTP response headers to resources external to your site, you need to copy these resources locally - to a server that you control - so ...
MrWhite's user avatar
  • 42.7k
5 votes
Accepted

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

Yes it is possible using Apache and PHP, by setting the expires and cache-control using header(), you can find out more about what is, and what is not supported in the HTTP/1.1 specification. PHP ...
Simon Hayter's user avatar
3 votes

Buying a domain name - How can I ensure that it hasn't expired or been 301 redirected before?

For domain name history, you can use this tool: https://who.is/domain-history/cnn.com. domaintools.com is better, but paid. PErhaps you can do a trial. Other than that, you can look up the site on ...
deltavin's user avatar
  • 346
3 votes

Is no cache meta tag bad for performance?

Using a no-cache meta tag is a bad idea. Page caching is valuable for both SEO and user experience. Caching will improve (lower) page load times. This means a user sees the content faster, which ...
James Hobson's user avatar
2 votes

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

Thanks for the trouble-shooting help. I have solved the problem -- by specifying a custom folder for storing temporary session data. Here's how: Locate the folder where your session data files are ...
Photon's user avatar
  • 51
2 votes

Is no cache meta tag bad for performance?

The use of 'to cache or no-cache depends on the end performance sort: 1) Affiliate Marketers - need to 'cache tags' when pages etc go to landing pages as the cookies are needed for allocation of ...
susanlewis's user avatar
2 votes

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

No, you aren't able to manage headers of files you don't host by your own. The single way to manage headers of those files you mentioned (google analytics and so on) is to host them locally. In this ...
Evgeniy's user avatar
  • 10.1k
2 votes

How to manually add expire header for google fonts css files?

You cannot change the headers for requests you're not responding to. In this case, the browser will make a request to Google asking for fonts. The browser will receive a response from Google(not you) ...
mikaelwallgren's user avatar
2 votes

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

Leaving pages accessible with a "this product is not available" message has the potential to make your site appear low-quality to search engines. If search engines send traffic to such ...
Stephen Ostermiller's user avatar
2 votes

Is it possible to look up expiration dates for domains in the .DE (Germany) TLD?

.de domain names, like some other ccTLDs do not have expiry dates. They live on as long as long you pay for them. That's why German providers often charge for the domain names by the month (around €1 ...
Kate's user avatar
  • 1,083
2 votes
Accepted

What's the difference between access and access plus in ExpiresByType directive?

These two directives are the same. The plus keyword is entirely optional. It is just syntactic sugar, to make it (arguably) more "readable". As stated in the Apache docs for mod_expires: ...
MrWhite's user avatar
  • 42.7k
1 vote
Accepted

What types of files does ExpiresDefault include?

But, what are the file types that ExpiresDefault will work on ? As you've stated, "the rest". Any responses that are not covered by the mime-types stated in the preceding ExpiresByType ...
MrWhite's user avatar
  • 42.7k
1 vote
Accepted

What happens when you release an expired domain?

I've got a domain on a registrar, which is in its grace period. I'd like to move it to a new registrar, so I think releasing it will be the best option. I had the impression releasing a domain ...
Kate's user avatar
  • 1,083
1 vote

What happens when you release an expired domain?

A registrar detags a domain because for some reason they are assuming you don't want to renew. The detagging ensures that they are not billed by the registry for a domain you seemingly don't want. ...
Steve's user avatar
  • 8,438
1 vote

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

See the solution here, which is working very well for me.
stéphane privé's user avatar
1 vote

Why is this site still down when the domain was renewed almost a week ago?

As you can see from the whois, the domain has probably just been renewed: Registry Expiry Date: 2019-01-27T00:48:16Z Updated Date: 2018-01-27T15:43:21Z Domain Status: ok https://icann.org/epp#ok ...
Patrick Mevzek's user avatar
1 vote

Buying a domain name - How can I ensure that it hasn't expired or been 301 redirected before?

"Are there any instances in which a domain could drop/expire and yet the registration listed with Verisign isn't updated to the new registration date?" There is zero probability of that happening. ...
Dynadot's user avatar
  • 757
1 vote

Buying a domain name - How can I ensure that it hasn't expired or been 301 redirected before?

If the domain is really deleted at the registry (not just expired, it must be completely deleted that is coming at a state when you do whois on it - on the registry whois server, so VeriSign only if ...
Patrick Mevzek's user avatar
1 vote

Is no cache meta tag bad for performance?

I agree with James. Google in particular is giving more weight to page load times these days, and both caching and compression speed up page loads. They also improve user experience, especially on ...
GeekOnTheHill's user avatar
1 vote

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

Expire meta tag will tell google to delete your page from their database, and so on for every page including the expire meta tag, you are basically telling google that the document isn't valid, your ...
knif3r's user avatar
  • 1,067
1 vote

http header if not modified help

For the HTML files, you can't have it both ways. The only way for Varnish to always show HTML files if they've changed would be to check every time (=cache miss), at which point you've not gained ...
Tim Fountain's user avatar
  • 4,454
1 vote

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

Unor is correct. It's like finding 2419200 seconds in a 4 week month then multiplying by 12 for a year 29030400. However as you mention, that is not very accurate as many months have 31 days, 5 weeks,...
jsidigital's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible