Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,20 @@

# Stop page from loading if a reflected XSS attack is detected
X-XSS-Protection = "1; mode=block"

[[headers]]
for = "/**/*.woff2"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
Access-Control-Allow-Origin = "*"
Vary = "Origin"

[[headers]]
for = "/**/*.css"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"

[[headers]]
for = "/**/*.js"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at the current transfer, should we also add *.png from the _static/ folder?

Image

Also, I am wondering if we should add a default somewhere between30 or 300. Arguably, when we test new deployment, it comes from a new environment, so cache will be cold, and if one wants to check the main website right after a change, they can always SHIFT+F5 to clear the cache.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no experience with this. My original Idea was to fix low hanging fruits.
To "buy" some time for the hoster change.
But if we are able to do the switch within on or two month we can do such things step by step with benchmarking and usability test later.

3 changes: 2 additions & 1 deletion source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@
}

smv_tag_whitelist = r"^$"
smv_branch_whitelist = r"^(main|(\d+)\.(\d+))$"
# smv_branch_whitelist = r"^(main|(\d+)\.(\d+))$"
smv_branch_whitelist = r"^(?:main|2.5)$"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this change do?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This only build the main and 2.5 branch.
Skips the unsupported Mixxx version legacy.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are pages high ranked by search engines - otherwise they wouldn't have so much hits - blocking them would prevent new users from Mixxx.

smv_remote_whitelist = r"^origin$"
# Mark all branches in the form "N.M" as released except "2.6"
smv_released_pattern = r"^.*/(?!2\.6)(\d+)\.(\d+)$"
Expand Down
Loading