My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more
Naimur Rahman

11 likes

·

85 reads

6 comments

BIPUL MANDOL
BIPUL MANDOL
Sep 5, 2023

nice reading.

1
·
Gaurav Yadav
Gaurav Yadav
Sep 7, 2023

What happens if a user tries to make a put request on the same form again and again.

Does it create a new put request in indexDB ?

·
·4 replies
Naimur Rahman
Naimur Rahman
Author
·Sep 7, 2023

Basically, service worker can intercept the network request/fetch calls. So you can fetch data from the cache based on user requests. But for PUT or POSt request you have make the fetch call when network available.

·
Gaurav Yadav
Gaurav Yadav
Sep 7, 2023

Naimur Rahman Making api calls automatically, BackgroundSync Plugin does that for you.

1
·
Gaurav Yadav
Gaurav Yadav
Sep 7, 2023

Naimur Rahman Let me ask a question in different way.

if a user tries to make a put request on the same form again and again.

Should we store multiple put request for same form, or should we store a single put request.

·
Naimur Rahman
Naimur Rahman
Author
·Sep 7, 2023

Wow! Seems interesting. I will definitely check this plugin. Thanks for mentioning this Gaurav Yadav

1
·