Mobile app version of vmapp.org
Login or Join
Gail5422790

: Can server break clients' cache settings? I have disputed a domain name to a cybersquatter that I expect to recover soon. The problem is that the cybersquatter has changed the cache headers

@Gail5422790

Posted in: #Cache #CacheControl #HttpHeaders

I have disputed a domain name to a cybersquatter that I expect to recover soon. The problem is that the cybersquatter has changed the cache headers and now every user who already visited the site or is going to visit the site until the domain name is given back, can see the same page until 2016.

A lot of the traffic of the site comes from Google, I will fix that by moving the domain with Error 301 and the webmasters tools. But how about those users who access directly to the site? Is there any way (I guess not) to break the client's cache settings (even the homepage is cached)?

Thank you!

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Gail5422790

1 Comments

Sorted by latest first Latest Oldest Best

 

@XinRu657

Can server break clients' cache settings?


Not with HyperText Transfer Protocol - the client always has the option to clear his or her cache and or otherwise ignore the Expires/max-age value and force a new request.


Is there any way (I guess not) to break the client's cache settings (even the homepage is cached)?


HTTP clients (I tested with FireFox) should ignore Expires/max-age cache headers when the domain name points to a new server.

Once you are back in control of the domain and the domain's A/AAAA records specify the IPv4/IPv6 address of a server which does not belong to the squatter, it should only be a matter of time (longer than you might like, but less than five years) before clients' cached DNS records are updated, their old cached content is ignored, and their requests return results from your server.



Test process:


Specify IP address of Server #1 for "test.cache.domain" in hosts file
Create virtual host, specify high-value max-age on Server #1
Create virtual host, no cache-control headers on Server #2
Request "test.cache.domain" in browser (review logs on Server #1 to confirm only one request)
Close browser, clear local DNS cache, specify Server #2 IP address for "test.cache.domain" in hosts file
Open browser and request "test.cache.domain" (should show results from Server #2)

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme