You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running ESPAsyncWebServer on an ESP32 DevKitV4 Wrover-B.
I've tested today a way of sending web-pages with PROGMEM and I've noticed something strange. When sending the same page with SPIFFS, I couldn't get <meta name="theme-color" content="#e11422"> to work.
But now, when I've send the same page with PROGMEM <meta name="theme-color" content="#e11422"> started working.
I've only tested with a mobile phone, because I couldn't get my PC to connect to the ESP32 (#2910) so I can't tell if any of the head elements work with SPIFFS. But I am starting to think that they don't.
This is the unminified HTML's head that I send using SPIFFS system.
<head>
<meta charset = "utf-8">
<meta name = "viewport" content = "width=device-width, initial-scale=1.0">
<!-- Chrome, Firefox OS and Opera -->
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="shortcut icon" href="/favicon.ico">
<!-- Tab Color iOS Safari -->
<meta name="apple-mobile-web-app-title" content="#e11422">
<meta name="application-name" content="#e11422">
<!-- Tab Color Android Chrome -->
<meta name="theme-color" content="#e11422">
<link rel = "stylesheet" type = "text/css" href = "master.css">
<title>DHCP IP</title>
</head>
Hello !
I am running ESPAsyncWebServer on an ESP32 DevKitV4 Wrover-B.
I've tested today a way of sending web-pages with PROGMEM and I've noticed something strange. When sending the same page with SPIFFS, I couldn't get
<meta name="theme-color" content="#e11422">
to work.But now, when I've send the same page with PROGMEM
<meta name="theme-color" content="#e11422">
started working.I've only tested with a mobile phone, because I couldn't get my PC to connect to the ESP32 (#2910) so I can't tell if any of the head elements work with SPIFFS. But I am starting to think that they don't.
This is the unminified HTML's head that I send using SPIFFS system.
This is the Server's handler:
Now I put the HTML's head through a minifier and a C/C++ string converter and the Server's handler transforms into this:
The question is: why does it work properly when it's send with PROGMEM but it doesn't work properly when it's send using SPIFFS ?
The head tag doesn't appear to change.
The text was updated successfully, but these errors were encountered: