Skip to main content
View on YouTube to comment and like!

Syntax Podcast

It’s Been A Hell Of Week

Wes Bos Host

Scott Tolinski Host

Scott and Wes break down a chaotic week in dev news — the Claude Code source leak, a nasty Axios npm supply chain hack, and Railway's private cache exposure — plus how to keep these nightmare scenarios from hitting your own projects.

Topic 1 00:00

Transcript

0:00

Scott Tolinski

This week has been absolutely crazy so far. There is just an endless amount of interesting things, so we thought we would break down some of the wildest stuff that has happened this week. Claude Code's source code got leaked. Axios was hacked, and that's major for some various reasons. There's something called pretext, which had every single person on the internet tweeting about text rendering. It has been absolutely wild. My name is Scott Tolinski. I'm a developer from Denver. With me, as always, is Wes Bos. What's up, Wes?

0:38

Wes Bos

It's Tuesday, and I can't believe everything's going down. It's Tuesday, my

0:41

Scott Tolinski

dudes. Unbelievable.

0:42

Wes Bos

By the time you listen to this, it'll probably be about a week later, but we're going to get into it and talk about, I think there's some good lessons to be learned here, as well as just interesting tidbits to dive into. So let's start with the first one, which is Claude Code leaked. So what happened? It was Exact same thing that happened with the, the Apple App Store, which is, when they publish a website, you, you have what's called a source map. And a source map takes your, like, minified, bundled, mangled code, and then it will simply just, like, point to where in the, like, the parts of the code where it was unminified. and when you do that, you're able to actually see what the unminified code looks like, and then it also includes things that were maybe dropped during compiling. Most notably, that's often, like, comments and things that are, are dipping in there.

1:34

Wes Bos

and Cloud Code published their source map. It was 60 meg file. They published it to NPM. In the case of Apple, it was just simply on their website. You open up DevTools, and it downloaded. And, and generally, I don't know, that's, it's not generally something you want on your website if your, your, like, client code is something that is somewhat sensitive. Because, like, you're still shipping the code to the user, but you're essentially giving them access to the uncompiled. Version, you can see their folder structure, how they do CSS, all the comments, all that crazy stuff.

2:05

Scott Tolinski

Yeah. You know, it's so funny when we, when CJ put together that Apple source code video leaking, people were like, this isn't, this isn't leaked, this is just client-side available code. Like, man, this source map stuff is real. And like, It's, it's wild to see, definitely to peer inside of things.

2:27

Scott Tolinski

I, I, I've been like just waking up to see all of this information, so I haven't had a chance to dive into this thing yet.

2:34

Wes Bos

Yeah, I, I did a quick little look, and the first thing I do, of course, was I looked for the spinner verbs. So when you run cloud code, it'll say things like flummoxing or envisioning or whatever, and I was always curious if those were like AI generated, but I've, I've seen, specifically I've seen hullabalooing more times than I can count.

2:52

Wes Bos

So I immediately went in and looked for it, and yes, there's 187 spinner verbs in there. And this is not something that, like, you would have been able to find this out previously, because like you can't, the thing about like strings is that you can't encrypt them or like compress them, because they're strings that need to make it into the final thing. So you probably could have found this previously, but I thought it was kind of interesting to take a look at it.

3:18

Wes Bos

Another thing they had was They're, they've, when they share like five character IDs, when you're, you're handling channel permissions, they just generate a random five thing from the alphabet, right? They take L out of it because it looks too close to a one.

3:35

Wes Bos

and then they also have this like huge avoid substrings, which is just bad words that may possibly, Wink,

3:42

Scott Tolinski

pee, poo.

3:44

Scott Tolinski

I'm not going to say any of the other ones. Wes, we got to blur those. Some of those are actual slurs here, so.

3:49

Wes Bos

Yeah.

3:50

Scott Tolinski

Randy, Randy will blur them.

3:52

Wes Bos

and then the last one here was that when you swear at Cloud Code, it actually flags it with a regex, surprisingly. And so if you say like.

4:02

Wes Bos

Garbage, what the hell, and many other terrible things, which is like, don't thwart the robots, folks. They're going to come get you. But basically, I was surprised to see that was an English only regex. And then when they detect that it is a negative prompt, it's sent to their analytics server as a negative prompt. They probably use that for like reinforcement training. I mean, no, that was not a good one.

4:25

Scott Tolinski

I think some of my most sent messages to AI are, you fucker, fuck you, eat shit.

4:30

Wes Bos

Please bleep that out. Editor.

4:33

Scott Tolinski

Yeah.

4:35

Wes Bos

so my question is like, is, is this a big deal that, that this happened? Obviously, I feel bad for, they're like DMCing it, they're taking it down, anyone that's forked it. Interestingly, somebody converted the entire thing to Python, and now they're having trouble having that taken down because it's not technically the code. There's this whole crazy world now where like.

4:54

Scott Tolinski

Interesting.

4:55

Wes Bos

It is their code. You're just, you're just going around it by converting it to Python.

4:59

Wes Bos

but like, is this a big deal that, that this happened? Like, this is the, this is not their model. Their model did not leave. No. But it is all of the code behind the CLI, the desktop app, the SDK, all of that type of stuff. And, and this was code that they were just willingly giving you. but now it's simply just easier for you to deconstruct it because you have the, the source map. So I don't know that like somebody like, like OpenAI is going to be like, now we have access to their, all of their components and things like that. Yeah,

5:27

Scott Tolinski

yeah, yeah, yeah.

5:29

Wes Bos

I don't know. There's probably a couple little tricks here and there, but I don't think that this is a crazy game changer. You could always give Claude a bundled thing and ask it to decompile it, and it does a pretty good job at that.

5:42

Scott Tolinski

Yeah. What's so funny here, Wes, is that this is kind of on the heels of this whole conversation about people hitting their Claude code limits way faster. So that's been a major topic of conversation. People have been leaving comments on our videos even asking about this, where in Claude code, what was happening is that you were hitting your limits much faster recently. Now, they haven't had any official statement here, but someone on Reddit did dive into this and found that there were two major situations where cache invalidation was essentially ruining the prompt caching, causing you to hit your limits much faster. So this isn't necessarily the official explanation from Claude that something is happening. But this was a, we'll put this link in the show notes for this Reddit post because it was a really interesting deep dive into what exactly is going on. Basically, part of their string replacement that they're using to, what I understand is to validate billing stuff is one of the bugs that is causing the cash to be invalidated on every request. As far as I'm concerned.

6:51

Wes Bos

I did hear, I was talking to Kramer at our syntax meetup and he said, yeah, there was some, he said, he mentioned something about there being a cash issue and their bill went up like 10 grand in one day or something. I don't know what the output of that actually was, but maybe that was related to this.

7:09

Wes Bos

They are also, Cloud Code is just like breaking at the seams. Everybody wants to use it. So they've been, they've been trying to like enforce off hours. Like if you have to do stuff that's not like mission critical. It's really funny. Like they literally say during these times you may hit your limit faster. And it's just like there's Like one hour of like, like California lunch where it, that just dips right down.

7:36

Wes Bos

That's, it's so funny to me that we have all of this power and, you still see the, the lunch break goes down, you know? Or, you've heard of like, like tea breaks, the electricity grid in Britain, you know, they have to, during commercial breaks for like, I don't know what the Brits watch, you know, like Road to Avonlea or something like that. The, the electricity spikes as everyone turns their kettle on at the exact same time.

8:02

Wes Bos

wild, wild, wild world, but.

8:05

Scott Tolinski

It is, yeah.

8:06

Scott Tolinski

I wonder if we're seeing, the start of the subsidizing of these, these models starting to crack a little bit. I don't know. I'm not smart enough to have the answer for that. Interesting stuff, yeah.

8:18

Wes Bos

We'll probably get there at some point.

8:21

Wes Bos

I don't know if we're there yet because it's still a huge battle between Like OpenAI, Codex, Cloud Code, you know, Gemini, like I hear Grok's going to be dropping their own coding model relatively soon. So everybody is just trying to like capture that huge audience. So they're probably going to be subsidizing it for as long as possible.

8:44

Scott Tolinski

Yeah, yeah.

8:46

Scott Tolinski

And in that regard, like right now, just spend as much tokens as possible if you're not paying for the API, if you're on one of those max plans.

8:57

Wes Bos

Next one we have here is Axios had a hack. Which was, was kind of scary. so Axios obviously, like a huge kind of fetch replacement. it is still, even though we've had for fetch for many, many years, it is still very big because it is a dependency of, of many things. People have older projects that they don't want to move off. And there are several little niceties of Axios that allow you to, that are much nicer than just using fetch. We did a show many years ago, like why are people still using Axios? and I, I no longer use Axios in any of my projects simply because most of the stuff, like canceling requests or having timeouts, most of those have been implemented in the platform now. But. A lot of people still use it. Bazillions of downloads every single day. And one of the core maintainers had his credentials stolen or hacked or something like that. They released a 4.2.0, which nice hacker. That was cool. Which is a clean, they call it a decoy copy. And there was no, there was nothing in there. And it basically just was like a full version. And then what they did is they released a point version, which if you know about Semver, if you release a point version and you have like 4.2.0 specified in your package JSON, then npm installing will install any, it depends on if you have like the tilde or the squiggle. I have a whole video on it. But basically, for most people, when you install it, it will just install the newest version. So there was a thing on here that dropped, it's called a rat. I had to look this up. It stands for remote access Trojan.

10:36

Wes Bos

Essentially what it does is you install it, it runs a post install script. And then that will install a remote access Trojan on your machine, and then they can do whatever they want on your machine, which is kind of scary.

10:52

Scott Tolinski

Luckily,

10:53

Wes Bos

people caught it relatively quickly. I didn't hear of anybody getting hacked yet, but certainly people have installed this and run the code, so I would certainly check your package lock JSON for the specific versions mentioned here.

11:08

Scott Tolinski

Yeah, it's so funny. I've, I've never knowingly used Axios, as in like, none of, I've never installed it myself. And, and, and not like what you're saying. Yeah, yeah, yeah. But I did a search for Axios on my computer just to see how many copies of it I have and which projects. And the thing that was the most interesting for me was that the only one I have, believe it or not, is my Clawdbot, my OpenClaw. It's the only one, which is probably, not great.

11:38

Scott Tolinski

but yes.

11:38

Wes Bos

Yeah. Well, that was a kind of the scary thing. Even if you don't use Axios, probably one of your packages uses Axios down the line. And if it's anywhere in your dependency tree, then you're, you're gonna get in trouble.

11:52

Scott Tolinski

You know what I find interesting about the, the fact that it is Axios, besides the fact that so many things use Axios, is that If, since OpenClaw does use Axios, I like wonder if that was a targeted, now you've got all these like people who aren't developers installing OpenClaw and just YOLOing everything. It's like a slop factory.

12:12

Scott Tolinski

Like is, was that, was that like a target, you know?

12:15

Wes Bos

Yeah. Like what's, what's the end game of these things? Like previously it was people trying to like steal your crypto, but now I think, like I had somebody email me the other day and they said, I can get you what's called residential proxies. And I was like, residential pro, and I was like, oh, the hardest part of being a spammer is getting like clean IP addresses. And if you're running these things on like a bot farm, on like some sketchy server farm, then your IP address is going to get flagged for that type of thing. But if you run them through IP addresses of like legitimate Like Comcast at, at someone's house, like that's, that's a huge asset. So I almost wonder if these types of things are like, I simply just want to run a very quiet proxy on, they're probably be looking for banking information and whatnot as well, but simply just having an army of computers is, is a huge thing and an army of clean, clean IP addresses that can.

13:16

Wes Bos

I don't know, do all kinds of bad things.

13:20

Wes Bos

The question of like, how do you stop this from happening, right? Because every time this type of thing happens, everyone's like, oh, you shouldn't be doing that. You should be like hard coding absolutely everything. And the reality is that like the entire software ecosystem is built on dependencies. You know, this has happened to Linux. It happens to Node a lot because our ecosystem is very big and this whole like nested dependencies is a very big problem. There are many, looks like the Step Security, I haven't heard of them, but they had a really good write up on it. Socket.dev for Ross, his stuff is really good. It seems like they caught a lot of that type of stuff. But the very minimum thing you should do is if you're using like PNPM, you can put a minimum release age on your things there. And what that will do is you can simply just wait one or two days.

14:09

Wes Bos

To update your, your dependencies. And, and what, and what that'll do is it'll give you a couple days to just make sure everything is, is good. You know, like this type of thing was caught within hours. Yeah.

14:21

Wes Bos

That way you're not accidentally npm installing something that has, a malicious value in it.

14:26

Scott Tolinski

Yeah, and I want to say pnpm does such a better job at this than most. Like there's the, the thing that I find to be annoying is probably for the best, where there's, you have to approve scripts in pnpm. Yeah. Like sometimes after you install things, it will say, yeah, you need to run pnpm approve.

14:47

Scott Tolinski

builder, proof scripts, or whatever that is. So, shout out to PNPM for actually doing something good.

14:53

Wes Bos

It's, that's a tricky thing because like, like a post install script is sometimes handy where like you install this thing and now you need to, to do a little bit of setup that is specific to your machine. But also it's kind of scary that simply just installing a package is able to like execute code on your computer.

15:11

Scott Tolinski

Yeah, it's at least good to have that even if it may be obnoxious at the time that like,

15:18

Wes Bos

yeah, I think the whole, I don't know, the whole sandboxing is going to get a lot more popular as, as we're just running random code from agents. I know a lot of people right now are just like YOLOing it, running everything on a single computer dangerously except absolutely everything because that's just the fastest way and it has access to everything. But I think we're in for a couple, couple years of hurt with, with stories like this until the models can get better at Detecting, like, cause it's, a, a, cloud code is so annoying when you have to, like, sit there and approve everything, you know, or you have to make an array of things it's allowed to do. Like, yeah, of course, you can, you can, like, read a file that is in this directory. But no, you shouldn't, like, RM my entire database.

16:02

Scott Tolinski

Right, yeah, it, it, it's, I think this is, this is, if you think this is a one-off thing, I, you know, this is just gonna get more and more common, for sure. Yeah, the next one we have here is Pretext. Now, Pretext is a, a, a new library, or you could say a new, package from the creator of React Motion. And was he a member of the React team itself at some point? Yes.

16:32

Wes Bos

Core contributor to React, also was one of the guys behind, what's the OCaml language? Oh, Reason ML? You know?

16:41

Scott Tolinski

Reason?

16:41

Wes Bos

Smart guy. Yeah, Reason, smart guy, to, to say the least.

16:45

Scott Tolinski

Yes, and this library, is basically a way to measure text in a highly performant way.

16:54

Scott Tolinski

And, Wes, this is one of those ones where I see the demos, and like many of other people at first I'm like, okay, but CSS can do some of this, like, like one of the, the, Accordion example he had showed doing animating from zero to height auto. I'm like, oh, CSS can do that. At least modern CSS can. Like, what is this actually getting us? And you dove into it considerably more than I did. So I'm interested to hear what your thoughts are on this, considering a lot of people, what they did is they saw the demo, which was a bunch of orbs passing through text and the text moving around. And there's so many bad takes where they're just like, why would I ever want the text to move like this? So like, yeah, that's, it's a tech demo. It's not a UI demo.

17:45

Wes Bos

Well, all of the demos were simply Just like doing funny things with the text. Like this one where someone, the text is getting out of the way of your, your thumb, right? Oh, that's pretty

17:56

Scott Tolinski

cool, actually.

17:57

Wes Bos

Yeah, that actually was really cool.

17:59

Wes Bos

I, I made a couple demos where I like, I did like a video of myself and the text was just falling around the video of myself.

18:06

Wes Bos

there's some cool demos around different algorithms for justifying text, which is I didn't even realize this was a thing, you know? Like, like, text-align justify, that, that is just a thing. But there are different algorithms that make it much more readable, to enjoy. So what this is, is it's a library for simply measuring text without having to append it to the DOM. So right now, like, here's a little demo I have with, like, something like FitText. This is the way FitText works, is that you, you just increase the font size every time, and then as soon as you hit the font size that is larger than what it is, you realize,

18:46

Scott Tolinski

yeah,

18:47

Wes Bos

I'm, I'm too big here, then you, you back it up one, and then you're, you're at your final value.

18:53

Wes Bos

and, and that requires you to update the DOM, in this case, I don't know, nine times, read the DOM size, and then, like, even if, this is obviously slowed down here to, to show the visual, but even then, if you were to do it instantly, it's still a visual flicker. Whereas, whereas this, you can simply just measure how big text Will be.

19:14

Wes Bos

It does it via canvas. It parses every single word. It measures them all. It caches them. It does it really quickly.

19:20

Scott Tolinski

This to me is one, I know this is like one of the minor use cases for this, but I actually maintain Svelte fit text, which is like an action that does, so I have experience with fit text. To see that is like, oh, that rules because I always found that process to be unusual where you're just like looping and making it bigger. Oh, it's too big. All right, back off. And then you have to choose what that interval is. So,

19:44

Wes Bos

yeah.

19:46

Wes Bos

It's a very cool implementation. And I think the use case of it is not yet revealed. I'm doing a video on what I think it is, but This is, this is one of the guys that worked on the virtual DOM for React. Basically, someone that looked at the browser and looked at the DOM and said, I'm going to build my own. Now he's looking at the DOM and sizing text and goes, I'm going to build my own. So there's, there's kind of like two things I'm, I'm thinking here is, is either he's making an entire, this is a primitive to something that is much bigger, like, like a React native, where he's building an entire UI ecosystem that renders not to the DOM, but will render to like, like canvas or OpenGL or metal or, or like, like something that is native. Or, and I think, I think that this is probably it, is that I think that he works at Midjourney, and I think Midjourney is working on like a Figma competitor. And a lot of these new Figma killers that are coming out right now, they are all built in web tech.

20:54

Wes Bos

And what that allows you to do is you can use Claude or whatever to build something in these apps, like paper, pencil is one.

21:05

Wes Bos

And then when it comes time from going from design to code, it's a lot easier because your design was done in web tech.

21:14

Wes Bos

And then the other way is great as well, is if you have Claude make a website and you want to bring that into a design app, it's a lot easier to take an existing website and put it into like a Figma. You know, it goes both ways. So I bet that Midjourney is working on something like this. And part of their App that they need to do, they hired the like rendering guy, you know? They're probably building some super performant Figma-like application. And part of that is you have to figure out how to do text. You got to figure out how to size text properly and know how big things are and figure out if it should wrap or not. Like that's what, that's exactly what this thing does. So I bet that this is a primitive for that type of thing. And also, if you go to the Midjourney website, look at, look at right here. It says projects. Over the coming months, we're unveiling a wide range of ambitious projects over the themes of imagination, coordination, reflection, beauty, and human flourishing. But look at this one, TBA software. What's that? A pen. TBA software. What's that? If you inspect element on this image, it says people.png. So this is going to be a collaborative app. For doing designs, and then you look at this investigative

22:28

Scott Tolinski

dev work here.

22:30

Wes Bos

Yeah. I could be wrong. I thought, I thought Deno was gonna get bought by OpenAI, and I was wrong about that, but this is just my crazy.

22:38

Scott Tolinski

Yeah, no, I like, I like all these, cause you're, you're not like just shooting in the dark here. I, I do find this, the, one of the things that I think a lot of people that, question about is cause when they see some of these things, they think, oh, is this using Canvas, right? Is Canvas involved here? and Canvas is doing the measure, that measuring, that's correct? Yeah. Canvas

22:59

Wes Bos

is doing the measuring, yeah.

23:00

Scott Tolinski

But it's not doing the actual, rendering at the end of the day, because I, I did see comments being like, how could this be Accessible if you're just doing canvas. But all of the demos have text on the DOM. They're just getting the measurements via canvas.

23:18

Wes Bos

It, it can be either. So essentially there is a prepare function, which will measure all the words, and then there's a layout function that you pass it a width. So you say, lay this out given a 500 pixel width, and then it will figure out where the wrapping and everything goes. And what it gives you at the end of the day is simply just the text and the words, the end of width for that one. And then it's up to you to figure out what to do with that. So you could just write this to canvas, which I think this is a huge use case. Writing text to canvas right now sucks, because there's no word wrapping. But now we have word wrapping in canvas. You can just use this. But all, most of the demos, people are simply just absolute positioning this. So this is Bmovie.

24:02

Wes Bos

I absolute position every single word in Bmovie, and it took 42 milliseconds to parse, and then one millisecond to lay out. And then that means if the layout changes, you don't have that initial 42 milliseconds. And that's why all of these demos are like stupid like things, because he wanted to show how fast it was. That you can literally lay out text at 120 frames a second, no problem.

24:31

Wes Bos

And that's why it was. But nobody's actually building these like silly editorial layout type of things.

24:37

Scott Tolinski

Yeah, I think there's a couple of classes of bad takes on this. One, there was the CSS can do this already, or this is dumb kind of take, because that's not really what this is about. Two, the bad take on the demos being Unusable. The demos are just tech demos, folks. They're just there to illustrate how, like, the, the limits that you can push this type of thing. They're not meant to be like, oh yes, we should be reading a blog post with moving text. That's not like what these are about. Another bad take I saw on this was, this changes absolutely everything. The web will no longer be the

25:16

Wes Bos

same.

25:19

Scott Tolinski

They're crazy.

25:21

Scott Tolinski

the, like, what's so weird about this is for being something that is like nerd interesting, it really blew up in an odd way of people either hating on it or thinking it's like, going to be, you know, curing all disease.

25:39

Wes Bos

It's unbelievable that people would, would say CSS is dead because like, you do not want to be laying out your text Where everything is absolutely positioned and you give up all of the benefits of the flow of the DOM.

25:53

Wes Bos

In some cases, yeah, you do. But in most cases, no. Like if we were the other way around, where we were manually looping over segments and laying out sentences one by one, and then somebody came out with the fact that you have relative positioning, game changer. A game changer. You just put a paragraph and the image goes below it. You don't have to position it. You know, like that would be hilarious.

26:17

Scott Tolinski

Yeah.

26:18

Wes Bos

But here's one more thing. A lot of people were saying, CSS can do this. And they're linking all these demos. Here's one of them where we have shape outside in CSS, which allows you, if you have an image, you can float it left or right, and then your text will wrap around it. And I was like, I was working on a video a couple of months ago being like, why is nobody using this? And then I started. Like building something, I was like, oh, it's because this sucks. It doesn't actually work very well.

26:43

Wes Bos

Like this example right here, there's a girl and then text is going around it. First of all, there's two columns. You have to manually figure out which what text goes in those two columns, right? And so you're kind of out of luck there. And then also this girl is like literally had split in half so that you can float one left and one right. There's no way, there's no like clear both in CSS where you can like wrap text around an object. It either goes to the left or to the right. So like, again, this is a cool demo, but like there's a reason why you don't see websites using this because it doesn't work very well.

27:17

Scott Tolinski

Yeah. And to me, that's like that type of layout is maybe even like the least captivating part of any of this. So.

27:23

Scott Tolinski

Yeah.

27:24

Wes Bos

Last one here. And this one is not to necessarily dunk on Railway, but it's more of like a interesting thing I think all developers should know because this is kind of a A scary security thing that people don't necessarily think about. So railway had an incident where they changed something with their CDN and they accidentally cached private pages and then shared them between that domain. So the way that this works is if you have like a page or like I'm logged in to mybank.com forward slash accounts and you I render out the page that shows all of my account balances. If you cache that page, like just simply the caching the HTML or any other resource, You're putting, you put that, you can throw that into, in either cash it in the browser, you can cash it in a private CDN, or you can, you can cash it on a public CDN. and, and things like your homepage for your bank may, maybe want to be cashed, but stuff that has private information, you shouldn't be sharing that cash between the two, right?

28:36

Scott Tolinski

Yeah.

28:37

Wes Bos

And what happened with Railway here is that they, they changed something with how their CDN worked, and then people were starting, were loading pages of, of applications and realizing, I'm, this is not my data. Like, why am I seeing stats for somebody else? There were several incidents where people had like medical information, and people were seeing medical information for other ones, and that's because the cash was not scoped to the user, it was a, it was a, a public cash, which is a huge security issue, right?

29:10

Scott Tolinski

Cashing. Well, that's how many of these issues are cashing?

29:13

Wes Bos

Cash ruins everything. Around me. Cash is always the biggest problem that I have here. So that sucks. I want to talk real quick about like how do, how you can you avoid this? Cause this, this kind of happened to us on, luckily it wasn't a security issue, but this happened to us on the Syntax website where we had user specific themes. So you go to the Syntax website, you set a theme to be like dark or like synth wave or something like that. And then when you visit a page, we, the, the theme is sent in a cookie and then we server render that theme with all of the classes on it. And the first person who would go to, like, like a random page, if they had a different theme than what you had, what would, would happen is that That person's page would be the cache, and we stored that in the cache, you know? But really, that person's theme in their CSS, that was specific to them, and that shouldn't have been like shared amongst other people, right? And we were trying to be smart by like server rendering the theme so you wouldn't get that flicker.

30:20

Scott Tolinski

Yeah, no flash. I'll, I'll, I'll in the, just to improve the server response there, the remove the flash of unstyled content. Luckily, this wasn't tied to user accounts or anything. No, just user

30:34

Wes Bos

preferences, and you would just get a random like flash of somebody else's theme on random pages. So how do you avoid this? Don't cache private pages, or maybe cache the templates, but don't cache the actual data.

30:49

Wes Bos

Use the cache control private header, so meaning that it's not cache control public, it's not going to be shared amongst a public one. You can also, there's also a vary header where if you're like caching a resource, you can set a very header on it for like something like the user ID or the user cookie, something like that, and then, and then that will make sure that, okay, I will cache it, but I'm going to use this specific piece of information to cache for that specific person.

31:20

Wes Bos

although Cloudflare doesn't support the very header, I know Netlify does.

31:26

Wes Bos

I was talking to Matt from Netlify about this specific problem when we had it on our theme, as well. So essentially just like, I would probably say don't cache sensitive information like that, cause that's a whole nother HIPAA compliance problem that you're going to have.

31:43

Scott Tolinski

Yeah. Man, this stuff is tough, We're dealing with all kinds of stuff on the web, but, be careful out there, folks.

31:51

Wes Bos

Stay safe.

31:52

Scott Tolinski

Stay safe. Yes, stay safe.

31:54

Scott Tolinski

let's get into the point of the show where we talk about sick picks, Wes. Do you have a sick pick for us today?

32:01

Wes Bos

Boy, do I.

32:04

Scott Tolinski

I like that intro. Boy,

32:05

Wes Bos

do I. Man, so Every couple of years I go through like, like a chargers, and I think, man, I need, I need like a better charger for this type of thing. And like, one thing I hate is super dog slow chargers that can't like, oh, you can't charge your laptop on this one, it's not as good, or like, oh, my phone is dead, I can, I can charge to 80% in like 20 minutes, but I don't have the proper charger. So, a couple months ago I bought this Ugreen 200 watt 8 port GAN charger, and it has one, two, three, six USB Cs, two USB As, it's like super high quality, it's all metal. If you go on Amazon and you search for chargers, you're gonna see like, people are like, 700 watts for 20 bucks, and like, be very suspicious of high claiming chargers that are very cheap, because they, they don't exist. but I've landed on this Ugreen 8 port one, and I got it for all the kids, cause all of our kids, we've got what, three or four iPads, we've got, they all have headphones that need To charge and then there's several other things like we got a meta quest VR thing.

33:14

Scott Tolinski

You did. Yeah.

33:15

Wes Bos

Awful. Absolutely. Oh I like it. Oh man. Makes me want to puke. We'll talk about more about that later. I want to see if I can get react native running on it but.

33:24

Scott Tolinski

Oh my god.

33:25

Wes Bos

We got to charge all that stuff and it's so nice having a like high quality charger that would charge nice and fast you can put plug your laptop into it. I know USB C has been around for a long long time but I'm like we're almost at a point now where the whole world is USB C and it will just everything will charge on it. So I bought another one because I was like I want one from beside my bed and I want to be able to I was having problems where like some stuff wouldn't charge or wasn't charging fast enough with like a crappy old one I have and I'm like I'm sick of this. So get the Ugreen 8 port. Big fan of it.

34:00

Scott Tolinski

Yeah I need one by my bed to charge my computer while my agents run while I'm trying to sleep.

34:07

Wes Bos

Well, that's the thing is like beside my bed, I've got like a Apple watch charger and then I have like a dock, like a MagSafe dock, but then I also have USB-C to charge my phone and then I have another one if I want to charge my computer at the same time and then like there's several other things and it's kind of getting away from me. And then I also realized that you can get these like USB-C to barrel connectors and like if you have something that is running on like a 12 volt, 8 volt, you can just change out your barrel connectors for USB-C, so I might do that as well.

34:37

Scott Tolinski

Yeah, just standardize. Yeah, the Google

34:39

Wes Bos

Home has a little barrel jack on there and you have to plug it into the wall. I was like, I could probably get a USB-C for that. Yeah.

34:46

Scott Tolinski

Yeah. Okay, I'm going to pick something in the long, something that you might charge with that, which is for Christmas, we got our kids Color Soft Kindles. They make Kindles for kids and we got These color so it's a color Kindle for kids they have a kids account and they are just downloading all kinds of graphic novels and comics on here you can do audio books on these now the only problem with the audio book stuff is that they do need Bluetooth headphones for some stupid reason there's no headphone jack on them so our kids have to use Bluetooth headphones and then we have to keep the Bluetooth headphones charged but like both of our kids have been going nuts for these cause they're just at the right age where my daughter can read now and my son is like really getting into comic books and graphic novels and he's like reading all these different kinds of comic books that are available on here and I gotta say the the product I've never had a Kindle personally but the product is really good now you are locked into the whole Amazon Ecosystem of things. And there is that, that Bluetooth headphones thing, but the actual device and reading experience on this is so good. And our kids just cannot put theirs down. They are reading every single night. So for me, that's like a huge, huge win to see them so like interested in reading as opposed to watching TV or playing games or something.

36:16

Wes Bos

Man, I'm gonna give you another sick pick right now. We've had these for a long time. The Wyze noise cancelling Bluetooth headphones. I was like a Bluetooth headphone hater for the longest time for the kids because A, they break everything that you give them. Like they're so rough on them. And like B, like I was at a point where I was putting replaceable headphone jacks in all of our headphones because like they would always like mash the end. And then finally when they got new iPads, there's no headphone jack obviously. So I was like, all right, we gotta get some Bluetooth headphones. And they have been fantastic. So we had for two years, we had Wyze noise cancelling headphones. They're super high quality. They held up to all of the abuse. And after two years, We, like one of our kids broke them and I had to glue them back together and we got them another set because they go on sale. Right now they're on sale for 35 bucks and the battery lasts forever. They're the most comfortable headphones.

37:17

Wes Bos

Aside from my Bose QC35s, they're probably the most comfortable headphones I've ever worn and they're noise cancelling, the kids love them. And like if you need headphones for your kids, get them. Like they leave them on all the time, you know, but it doesn't matter, the battery lasts forever and they charge USB-C.

37:33

Scott Tolinski

Yeah, very interesting. Cool, I've never even seen that.

37:37

Wes Bos

It's, yeah, they're fantastic. We're on like almost three years with them now, so. Hell yeah. I almost, almost tempted to buy like a whole stock extra of them. They're so

37:48

Scott Tolinski

good. One to stock and one to rock, I gotcha. All right, cool. Well, anything else before we get out of here?

37:55

Wes Bos

That's it. Use century, century dot o forward slash syntax.

38:00

Wes Bos

Please.

Quote it with credit and a link. Quoting Syntax

Share