11.5.2022 |

Using imports from CDNs do not work like they used to

I always thought that one of the main advantages when using an CDN link from a project is caching. When reading the getting started page of projects like jQuery and others, they often provide an hosted import link of the JavaScript file.

<script type="text/javascript" src="https://cdn.jquery.com/jquery.latest.js"></script>

Chrome and co. now include the origin domain in the cache key. This results in the file being downloaded by each site/origin that uses it.


Zur Übersicht

Mehr vom DevSquad...

Sophia Brandt

Whoogle - eine Alternative zu Google zum Selber Hosten

Dennis Hundertmark

Angular Testing fakeAsync