Hacker Newsnew | past | comments | ask | show | jobs | submit | bluemoon's commentslogin

Cloudflare (and likely other cdns) has a development mode for this exact use case


Unless I'm misunderstanding you: it's not about dev or prod. It's that you want Vercel to cache a dynamic page, but not your visitor. That allows you to be in control of the ship: if you purge the CDN, you don't risk a customer having a stale page.

I've seen a lot of customers get burn by sending `max-age` as a way of getting their CDN to cache, not realizing they're inadvertently caching on users' machines. Sometimes it's a seemingly harmless "5 minutes", but that can be damaging enough for rapidly changing pages (imagine breaking news on a homepage).


Look, regarding setting cache-control headers, it's a professional tool, and it's going to be possible to shoot yourself in the foot with it. The approach to try to reduce that is to have a UI that asks people, "hey are you sure you want to do this potentially dangerous thing? It just result in these unintended consequences", but yes, ultimately allow people to do it. Otherwise, you're not letting people use what they paid for.


Totally, I don't like surprising behaviors either. At the time we made that decision the `CDN-Cache-Control` proposal didn't exist, so it was a tricky spot.

There also really wasn't a UI opportunity in this case (although one thing we thought about was a setting to control it and turn off the Vercel override).


> There also really wasn't a UI opportunity in this case

Why, because the configuration is set in a text file and not in the UI?

You could send an automatic email to the account holder with the warning whenever someone adds a foot-gun cache-control setting, with the ability to turn off the email by setting a different configuration flag to true or by checking a flag in the UI.


SEEKING WORK - Remote or on-site Hi! I'm a passionate Python programmer. I have a background in web development using tools such as Flask and Django(and so many more).

I'm self-directed(entrepreneur) and spend much of my free time learning about computer science. Currently I'm interested in new opportunities full or part time.

I can do full stack web development, maintenance, deployment, and so forth. Apart from Python I also have experience with JavaScript, Common Lisp, C, and others.

Feel free to browse my GitHub and please do not hesitate to contact me! Github: http://github.com/bluemoon Contact: bradford.toney@gmail.com (name: Bradford)


Jruby seems like it has the most potential in the GC department. It seems like most of the interesting GC papers I've seen are work that's been done on the JVM.


And (IIRC) much of the JVM's GC and VM work came directly from the Smalltalk world and the Strongtalk guys.


No.JVM GCs (JRockit, Hotspot, IBM) have developed much further than what Smalltalk did. The G1 GC is especially nice.

I found

http://blog.dynatrace.com/2011/05/11/how-garbage-collection-...

a very interesting - and understandable - article.


I heard of SELF too.


There is a way in mongo to replace the id with an auto incrementing number. Have a look at the docs. It's also helpful of you want to use the id as a base62 value for urls


SEEKING WORK - Remote or on-site

Hi! I'm a passionate Python programmer. I have a background in web development using tools such as Flask and Django. I'm self-directed(entrepreneur) and spend much of my free time learning about computer science. Currently I'm interested in new opportunities full or part time.

I can do full stack web development, maintenance, deployment, and so forth. Apart from Python I also have experience with JavaScript, Common Lisp, C, and others. Feel free to browse my GitHub and please do not hesitate to contact me!

Github: http://github.com/bluemoon

Contact: bradford.toney@gmail.com (name: Bradford)


Yeah it has 127 karma and it was just on the front page, I don't think flagging has that much weight


Depends on who does the flagging, I think. Some flags are, like, an instant 10-spot demote. Some kick it from the 'news' section of the site completely (but still visible in 'newest').

I suspect there's a 'small flag', too, that doesn't drop the post's ranking unless enough small flags are accumulated.

It's all a bit blackboxy :)


SEEKING WORK Remote or Spokane, Wa. I'm a Python hacker, i generally do web development. Im always interested in new projects. Feel free to look at my Github: https://github.com/bluemoon I have done everything from full web stack deployments to various other projects. Don't hesitate to email me: bradford.toney@gmail.com


Yeah it sure didn't work out for them, I wonder if there is any hope for RIM at this point.


We just had to deal with this, there is a fork of the repository here https://github.com/pythonforfacebook/facebook-sdk I think part of the reason they removed the repository was because there were some changes to the way they handled the cookies, this fork however fixes that and does work.


That's pretty cool, hopefully we will have better support for multiple logs soon


Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: