20 lines
664 B
Markdown
20 lines
664 B
Markdown
Nel nuovo cast_server.dart hai aggiunto:
|
|
'Cache-Control': 'no-store, no-cache, must-revalidate',
|
|
in _baseHeaders().
|
|
Nel vecchio server non c'era.
|
|
|
|
Nel nuovo cast_server.dart, sostituisci:
|
|
static Map<String, String> _baseHeaders(String mime, int length) => {
|
|
'Content-Type': mime,
|
|
'Content-Length': '$length',
|
|
'Accept-Ranges': 'bytes',
|
|
'Cache-Control': 'no-store, no-cache, must-revalidate',
|
|
};
|
|
con:
|
|
static Map<String, String> _baseHeaders(String mime, int length) => {
|
|
'Content-Type': mime,
|
|
'Content-Length': '$length',
|
|
'Accept-Ranges': 'bytes',
|
|
};
|
|
Questa è la prima modifica che farei, perché ripristina il comportamento HTTP del vecchio server.
|
|
|