More and more Slater-powered Webflow projects are running in production! So, let's talk about what that means. Slater works a little differently in a production environment. Instead of serving a file from the Slater server, we serve a file from Amazon S3. The S3 file is extremely resilient, and by default, it is cached by the browser. When your site doesn't seem to be updated, even after publishing changes, it's likely a caching issue. Your browser is simply not getting the latest copy of the site files. Caching is every developer's arch-nemesis, even though it is every developer's best friend. Caching makes the web faster, even if it leads to the common advice of "try it in incognito mode." Slater has provided cache-busting functionality since early on, but it wasn't easy or intuitive. You had to manually update the We're excited to announce that we've just launched improvements to make production deployment more straightforward. With the new minification setting and improved caching, working in production should now be as easy as working in the staging environment! β β Javascript 101: All about caching Have you ever noticed how some websites load super fast when you visit them again? That's thanks to web caching! Caching provides a personal storage space on your computer or phone for website files. Here's how it works:
So why cache? Here are a few reasons:
But! Sometimes you might want to force your browser to ignore the cached files and load the latest version of a website. This is called "cache busting," and there are a few ways developers can do it:
Cache busting is useful when a website has been updated, and you want to ensure you're seeing the latest version without any old, cached files interfering. Go see if you can find cache busting in the wild and let us know what you find. Happy coding! - The Slater Team β β If Slater helps you create better websites, please support the team behind it.
|
Sign up for early access and weekly resources in your inbox
Slater resources, updates and community activity
You can now use OpenAI's latest and most powerful language model, GPT 4o, with Slater AI. We've been testing GPT 4o this week and Slater AI's capabilities are better and faster than ever! Along with the new model, we implemented several improvements to Slater AI. Slater AI will now give more Slater and Webflow relevant answers since we give Slater AI contextual understanding (h/t tdlabs.ca). We also improved the messages parsing (h/t @jeffamcavoy). Slater Sessions Slater Sessions are back! In...
We were excited to be invited back on an official Webflow livestream this week. This time, Slater played a supporting role on "Learn GSAP for Webflow." Aron and Cassie did an incredible job building a really cool GSAP animation. Aron started the stream by publishing JavaScript in Webflow, so you could see the advantages of cmd+s over the publish flow. Those few seconds it takes to publish your Webflow project feel like eternity when you've just forgotten to add a comma. ;) If you didn't see...
π, We were excited to be invited to Webflow's livestream, Add AI to your Webflow builds with these Webflow apps. It did not go as planned. π€¦βοΈ Aron's project was deleted prior to the demo but also open in another tab. Although it appeared to still be functioning properly, the project files were inaccessible. You can see the breakdown here. (Get a free month subscription using the code "wipeout".) π We are working on several tasks based on feedback from users like you. The minification of your...