fix(login): move version div under login button and disable HTML caching
continuous-integration/webhook Deploy concluido (rx.scoreodonto.com)

This commit is contained in:
VPS 4 Builder
2026-05-26 19:58:06 +02:00
parent 6df952acae
commit 120c683c42
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -200,10 +200,10 @@
</div> </div>
<button type="submit" class="btn" id="loginBtn">Entrar</button> <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;"> <div style="text-align: center; margin-top: 20px; color: var(--text-secondary); font-size: 0.85rem; font-weight: 500;">
v2.0.3 v2.0.3
</div> </div>
</form>
</div> </div>
<script> <script>
+1
View File
@@ -472,6 +472,7 @@ async function serveHtmlWithCacheBuster(res, filePath) {
content = content.replace(/href="([^"]+\.css)(?:\?v=[^"]*)?"/g, `href="$1?v=${APP_VERSION}"`); content = content.replace(/href="([^"]+\.css)(?:\?v=[^"]*)?"/g, `href="$1?v=${APP_VERSION}"`);
res.set('Content-Type', 'text/html'); res.set('Content-Type', 'text/html');
res.set('Cache-Control', 'no-store, no-cache, must-revalidate, private');
res.send(content); res.send(content);
} catch (err) { } catch (err) {
console.error('Erro ao ler HTML:', err); console.error('Erro ao ler HTML:', err);