fuenfvoacht: Cache-Control Fix + Balance-Text verbessert
Made-with: Cursor
This commit is contained in:
parent
05518ae6ac
commit
096a72c489
2 changed files with 8 additions and 1 deletions
|
|
@ -46,6 +46,13 @@ def before_request_auth():
|
|||
return authenticate()
|
||||
|
||||
|
||||
@app.after_request
|
||||
def add_no_cache(response):
|
||||
response.headers['Cache-Control'] = 'no-store, no-cache, must-revalidate, max-age=0'
|
||||
response.headers['Pragma'] = 'no-cache'
|
||||
return response
|
||||
|
||||
|
||||
def today_str():
|
||||
import pytz
|
||||
return datetime.now(pytz.timezone(TZ_NAME)).strftime('%Y-%m-%d')
|
||||
|
|
|
|||
|
|
@ -413,7 +413,7 @@
|
|||
<span class="text-xs text-slate-400">💰 OpenRouter</span>
|
||||
<button onclick="loadBalance()" class="text-xs text-slate-500 hover:text-white">🔄</button>
|
||||
</div>
|
||||
<div id="balance-inline" class="text-sm font-semibold text-green-400 mt-1">laden…</div>
|
||||
<div id="balance-inline" class="text-sm font-semibold text-slate-500 mt-1">— 🔄 klicken</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue