Update the wildcard redirect
What do you want added?
I have made an page for *.is-a.dev which is at https://test.educatedsuddenbucket.me (it is a wildcard subdomain for *.educatedsuddenbucket.me ) If it's implemented into *.is-a.dev it will remove the need for people to clear cache if they tried to visit their subdomain before pr was merged to the repo and got redirected to https://is-a.dev Sorry for bad English, but it would be good if it gets implemented.
@phenax I've had a look and done some tests with ESB (the issue creator) and it does seem to fix the cache issue. The cache issue is caused by the meta redirect on a 404 subdomain, but if we changed to this design it would likely fix that issue. This should be safe to implement.
@EducatedSuddenBucket Are we able to get the source code for this?
Here
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="https://www.is-a.dev/assets/favicon.ico">
<meta http-equiv="Cache-Control" content="no-store" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<title>Subdomain Available</title>
<style>
html {
--header-bg: #0f0c19;
--accent: #4e3aa3;
--body-fg: #9b7dff;
margin: 0;
padding: 0;
background-color: #0f0c19;
color: var(--body-fg);
font-family: 'Roboto Regular', sans-serif;
}
body {
margin: 0;
padding: 20px;
background-color: #0f0c19;
color: var(--body-fg);
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
text-align: center;
box-sizing: border-box;
}
.container {
max-width: 100%;
word-wrap: break-word;
}
h1 {
font-size: 2.5rem;
margin-bottom: 10px;
line-height: 1.2;
}
p {
font-size: 1.2rem;
}
span {
color: var(--accent);
font-family: 'Ubuntu Mono Regular', monospace;
}
@media (max-width: 600px) {
h1 {
font-size: 2rem;
}
p {
font-size: 1rem;
}
}
</style>
</head>
<body>
<div class="container">
<h1><span id="subdomain"></span>.is-a.dev is available!</h1>
<p><a href="https://github.com/is-a-dev/register" target="_blank">Claim your free .is-a.dev subdomain now.</a></p>
</div>
<script>
const subdomain = window.location.hostname.split('.')[0];
document.getElementById('subdomain').textContent = subdomain;
</script>
</body>
</html>
This issue has been marked as stale due to inactivity and will be closed. Comment anything on this issue to prevent it
Unlikely to happen as it would require a fair amount of infrastructure change at this point in time. I'm considering removing the wildcard all together.