What is the purpose of Flask’s context stacks?

I’ve been using the request/application context for some time without fully understanding how it works or why it was designed the way it was. What is the purpose of the “stack” when it comes to the request or application context? Are these two separate stacks, or are they both part of one stack? Is the request context pushed onto a stack, or is it a stack itself? Am I able to push/pop multiple contexts on top of eachother? If so, why would I want to do that?

Disabling caching in Flask

I have some caching issues. I’m running very small web-application which reads one frame, saves it to the disk and then shows it in browsers window. I know, it is probably not the best solution, but every time I save this read frame with the same name and therefor any browser will cache it. I … Read more