This video is available to students only

Final thoughts on static files

Some tips

We have a couple of choices for serving up static files. Honestly, the toughest part is remembering to execute collectstatic once you change things!

I wanted to mention that a difficult part of serving static files is caching - the act of sending a copy of a file if unchanged. And once a file does change, a good cache will detect the change and start to deliver the newer version. This is complicated by having a CDN assisting your static file delivery. In a typical scenario where you change an image or logo, how does the CDN become aware that it now possesses a stale copy of the file?

 

This page is a preview of Serverless Django with Zappa

No discussions yet