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.
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
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!
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.
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
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.