fix(login): move version div under login button and disable HTML caching
continuous-integration/webhook Deploy concluido (rx.scoreodonto.com)
continuous-integration/webhook Deploy concluido (rx.scoreodonto.com)
This commit is contained in:
@@ -200,10 +200,10 @@
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn" id="loginBtn">Entrar</button>
|
||||
</form>
|
||||
<div style="text-align: center; margin-top: 20px; color: var(--text-secondary); font-size: 0.85rem; font-weight: 500;">
|
||||
v2.0.3
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
@@ -472,6 +472,7 @@ async function serveHtmlWithCacheBuster(res, filePath) {
|
||||
content = content.replace(/href="([^"]+\.css)(?:\?v=[^"]*)?"/g, `href="$1?v=${APP_VERSION}"`);
|
||||
|
||||
res.set('Content-Type', 'text/html');
|
||||
res.set('Cache-Control', 'no-store, no-cache, must-revalidate, private');
|
||||
res.send(content);
|
||||
} catch (err) {
|
||||
console.error('Erro ao ler HTML:', err);
|
||||
|
||||
Reference in New Issue
Block a user