The server may set this optional cookie to echo the HTTP method of the initial request.
When the initial page was loaded with a method other than GET, set a cookie with that method:
Set-Cookie: _up_method=POST
The simplest implementation is to set this cookie for every request that is neither
GET nor an Unpoly request. For all other requests
an existing _up_method cookie should be deleted.
When Unpoly boots it will look for this cookie and configure itself accordingly. The cookie is then deleted in order to not affect following requests.
If the initial page was loaded with a non-GET HTTP method, Unpoly prefers to make a full
page load when you try to update a fragment. Once the next page was loaded with a GET method,
Unpoly will again update fragments. This fixes two edge cases:
Tip Your coding agent can search these docs locally with the Unpoly agent skill