Mise à jour

Mis à jour Dotclear en 2.21 ici et maintenant le cache statique fonctionne bien comme prévu ; voilà la liste des entêtes servies sur une requête d’un billet de ce blog, lorsqu’il est caché par le plugin :

HTTP/1.1 200 OK
cache-control: must-revalidate, max-age=86400, max-age=86400
connection: Upgrade, close
content-type: text/html; charset=UTF-8
date: Sun, 13 Feb 2022 09:24:19 GMT
expires: Mon, 14 Feb 2022 09:29:18 GMT
last-modified: Sun, 13 Feb 2022 09:21:46 GMT
link: <https://open-time.net/webmention>; rel="webmention"
permissions-policy: interest-cohort=()
server: Apache
strict-transport-security: max-age=15768000
transfer-encoding: chunked
upgrade: h2,h2c
vary: Accept-Encoding
x-dotclear-static-cache: true; mtime: 1644737007
x-frame-options: SAMEORIGIN
x-pingback: https://open-time.net/xmlrpc/open-time

On peut vérifier que la page est bien servie par le cache statique, cf x-dotclear-static-cache: … ligne 15.

Par ailleurs les liens utiles aux pingbacks et webmentions sont bien présents, respectivement lignes 17 et 8. Je vais pouvoir refaire des tests avec Nicolas et Nicolas

Cool \o/

Pour le fun, j’vais aussi tester du côté de JcDenis qui a mis en branle un petit projet sympathique …


Tests fait à l’instant pour tester la réception ici de webmention :

1er test avec envoi effectif, d’ailleurs ça apparaît dans la liste des rétro-actions de ce billets :

Test avec https://webmention.rocks/receive/1

https://open-time.net/post/2022/02/14/Mise-a-jour

Webmention Rocks!

Receiver Test #1

This test verifies that you accept a Webmention request that contains a valid source and target URL. To pass this test, your Webmention endpoint must return either HTTP 200, 201 or 202 along with the appropriate headers.

If your endpoint returns HTTP 201, then it MUST also return a Location header. If it returns HTTP 200 or 202, then it MUST NOT include a Location header.

Published: Monday February 14, 2022 3:43am -08:00

Sending Webmention
source=https://webmention.rocks/receive/1/4a324a3eb7d98c8434cee36714ba4422
target=https://open-time.net/post/2022/02/14/Mise-a-jour

Discovering Webmention endpoint
https://open-time.net/webmention

Sending Webmention
Response Code: 200

✔ Your Webmention endpoint returned HTTP 200 acknowledging the Webmention request.

2e test pour tester que l’implémentation rejette correctement les envois mal formés :

Test avec https://webmention.rocks/receive/2

https://open-time.net/post/2022/02/14/Mise-a-jour

Webmention Rocks!

Receiver Test #2

This test verifies that your Webmention endpoint validates the source and target URLs, rejecting the request with HTTP 400 if either parameter is invalid. To pass this test, your Webmention endpoint must return HTTP 400 for all the requests it receives from this test. This post should not appear as a comment on your post.

Published: Monday February 14, 2022 3:45am -08:00

Showing Previous Results Run Again

Discovering Webmention endpoint
https://open-time.net/webmention

Sending Webmention with invalid source URL
✔ Your endpoint rejected the request

Sending Webmention with invalid target URL
✔ Your endpoint rejected the request

Sending Webmention with invalid source and target URLs
✔ Your endpoint rejected the request

✔ You passed the test!

Ajouter un commentaire

Les champs suivis d'un * sont obligatoires

Les commentaires peuvent être formatés en utilisant la syntaxe Markdown Extra.

Ajouter un rétrolien

URL de rétrolien : https://open-time.net/trackback/15255

Haut de page