News for hackers. Stuff that matters.
Re:Want to learn to code? Don't copy and paste, type out oth... by nollidge on Friday December 14, 2012 @11:12AM (#4921582)
OK, so:

> This website uses CloudFlare in order to help keep it online when the server is down by serving cached copies of pages when they are unavailable. Unfortunately, a cached copy of the page you requested is not available, but you may be able to reach other cached pages on the site.

I'm probably being significantly thick-headed, but what exactly is Cloudflare even doing if it's not properly caching pages before traffic hits? And why would they want to advertise that fact on the error page?

Re:Want to learn to code? Don't copy and paste, type out oth... by tomasien on Friday December 14, 2012 @11:15AM (#4921602)
Yeah, we're a little upset it doesn't even have a cached version. Ridiculous.

http://tommy.authpad.com/don-t-copy-and-paste-other-people-s...

If you want to read it elsewhere

Re:Want to learn to code? Don't copy and paste, type out oth... by pencoyd on Friday December 14, 2012 @11:50AM (#4921818)
Just reached out via email to the site owner with some info/tips. We want to help.

CloudFlare doesn't cache HTML by default, though you can enable that with Page Rules. http://blog.cloudflare.com/introducing-pagerules-advanced-ca...

And the origin needs to be responding long enough for us to keep a copy in cache, once the Page Rule is enabled.

Re:Want to learn to code? Don't copy and paste, type out oth... by tomasien on Friday December 14, 2012 @12:05PM (#4921901)
Thanks, appreciate it. Are you with Cloudflare?
Re:Want to learn to code? Don't copy and paste, type out oth... by pencoyd on Friday December 14, 2012 @12:19PM (#4921975)
Yes, I work at CloudFlare.
Re:Want to learn to code? Don't copy and paste, type out oth... by pencoyd on Friday December 14, 2012 @01:56PM (#4922537)
Glad to see Page Rule helped. Some revision on cache-control headers would help further.
Re:Want to learn to code? Don't copy and paste, type out oth... by digeridoo on Friday December 14, 2012 @11:16AM (#4921615)
The website in question might not have proper Cache-Control headers, so the page may have never gone into the cache.
Re:Want to learn to code? Don't copy and paste, type out oth... by danvideo on Friday December 14, 2012 @11:21AM (#4921638)
But the question still remains why would Cloud Flare advertise this?
Re:Want to learn to code? Don't copy and paste, type out oth... by nollidge on Friday December 14, 2012 @11:35AM (#4921738)
Right. It's like: "CloudFlare caches things for you! Except for this thing here. But you can probably picture how great it is!"
Re:Want to learn to code? Don't copy and paste, type out oth... by samatman on Friday December 14, 2012 @02:47PM (#4922884)
It would appear that in this case, advertising it allowed the user to fix the problem. It's a trade-off, certainly.

It also means I've now heard of Cloud Flare.

Re:Want to learn to code? Don't copy and paste, type out oth... by untog on Friday December 14, 2012 @11:16AM (#4921614)
If the site goes down before anyone even hits it, I imagine that CloudFlare can't exactly get a copy. Given that CloudFlare is a free service, I suspect that it doesn't automatically cache every page, either- it might wait until a page gets to a certain level of traffic before doing so. I have no idea, though.