Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Javascript Is Not Cached #14

Open
FuadEfendi opened this issue Jun 11, 2024 · 0 comments
Open

Javascript Is Not Cached #14

FuadEfendi opened this issue Jun 11, 2024 · 0 comments

Comments

@FuadEfendi
Copy link

I don't know why, but cdn.jsdelivr.net always responds with 200 (full load) instead of 304 (Not Modified) - so, JavaScript is not cached at all; it hugely impacts performance.

I use this in my Hugo "head" as per instructions:

{{/* Put custom HTML markup before the end of <head>. */}}
    <script 
    src="https://cdn.jsdelivr.net/npm/quizdown@latest/public/build/quizdown.js">
    </script>
    <script 
    src="https://cdn.jsdelivr.net/npm/quizdown@latest/public/build/extensions/quizdownKatex.js">
    </script>
    <script 
    src="https://cdn.jsdelivr.net/npm/quizdown@latest/public/build/extensions/quizdownHighlight.js">
    </script>
    <script>quizdown.register(quizdownHighlight).register(quizdownKatex).init()</script> 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant