Guys, we are facing a unique problem.
Whenever we Stop our Site in the Websites sections by changing its Status from “Running“ to “Stopped“, it starts serving the index.html
file from /www/server/stop
Following is the code in that file:
<!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">
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="0">
<title>Upgrade</title>
</head>
<body>
<main>
<div class="construction-message">
<h1>System Upgrade</h1>
<h2>Stay tuned!</h2>
<h2 style="display: inline">System will be back up shortly!<br/></h2>
<br />
<br />
</div>
</main>
</body>
</html>
Now the problem is that this file is being cached by the browsers.
What we can do to avoid the caching issues is add a query parameter to the end of the url, like let's say ?timestamp=1675725372
which will be changing constantly, and an uncached version of the app will be delivered across the board to all of the users.
Now, how do I do that in the aaPanel ?