docs: update upgrade page title and heading; adjust cache control duration
This commit is contained in:
parent
265ff0c787
commit
c1be6ca582
@ -1,9 +1,10 @@
|
|||||||
<!DOCTYPE html>
|
<!-- head --><!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>FilaMan - Firmware Update</title>
|
<title>FilaMan - Filament Management Tool</title>
|
||||||
|
<link rel="icon" type="image/png" href="/favicon.ico">
|
||||||
<link rel="stylesheet" href="style.css">
|
<link rel="stylesheet" href="style.css">
|
||||||
<script>
|
<script>
|
||||||
fetch('/api/version')
|
fetch('/api/version')
|
||||||
@ -49,7 +50,8 @@
|
|||||||
<!-- head -->
|
<!-- head -->
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<h1>System Update</h1>
|
<h1>Firmware Upgrade</h1>
|
||||||
|
|
||||||
<div class="warning">
|
<div class="warning">
|
||||||
<strong>Warning:</strong> Do not power off the device during update.
|
<strong>Warning:</strong> Do not power off the device during update.
|
||||||
</div>
|
</div>
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
#include <Update.h>
|
#include <Update.h>
|
||||||
|
|
||||||
// Cache-Control Header definieren
|
// Cache-Control Header definieren
|
||||||
#define CACHE_CONTROL "max-age=31536000" // Cache für 1 Jahr
|
#define CACHE_CONTROL "max-age=604800" // Cache für 1 Jahr
|
||||||
#define VERSION "1.0.0"
|
#define VERSION "1.0.0"
|
||||||
|
|
||||||
AsyncWebServer server(webserverPort);
|
AsyncWebServer server(webserverPort);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user