ETag implementation using libEspHttpd

Deepak saini
Posts: 4
Joined: Wed Jan 15, 2020 6:05 am

ETag implementation using libEspHttpd

Postby Deepak saini » Wed Mar 04, 2020 10:23 am

Hi Team,
I wanted to implement ETag web caching feature. The http library I am using is libesphttpd. I have read about web caching fundamentals from internet. But I can't able to understand where to start this Etag implementation using this library.

Please help me in this regards..

Regards
Deepak

PeterR
Posts: 621
Joined: Mon Jun 04, 2018 2:47 pm

Re: ETag implementation using libEspHttpd

Postby PeterR » Sat Mar 07, 2020 11:49 am

I have not used libEspHttp/ETag before but RTFM suggests that ETag is a simple header with a key value which you updated when you webpage changes (not sure why this helps, MQTT/Websockets could handle dynamic content). Try:

Code: Select all

httpdHeader(connData, HeaderKey, HeaderValue);
& I also believe that IDF CAN should be fixed.

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 85 guests