erasmus-without-paper / ewp-specs-api-registry

Specifications of EWP's Registry API.
MIT License
0 stars 2 forks source link

If-Modified-Since ignored by Registry service #13

Open maurovanetti opened 3 weeks ago

maurovanetti commented 3 weeks ago

The Caching section reads:

When querying the Registry, clients MAY also utilize web caching techniques, such as If-Modified-Since or If-None-Match HTTP headers. If these request headers are used properly, the Registry will respond with HTTP 304 Not Modified status (thus reducing the time you need for receiving and loading the catalogue).

And yet, if I call https://registry.erasmuswithoutpaper.eu/catalogue-v1.xml with

If-Modified-Since: Wed, 12 Jun 2024 09:30:00 GMT

set to any recent time, the response is always HTTP 200 OK.

janinamincer-daszkiewicz commented 1 week ago

Thank you Mauro for reporting. We are working on the patch, will notify you when we install the changes and will ask for testing.

maurovanetti commented 1 week ago

Cool!

mkurzydlowski commented 2 days ago

@maurovanetti, you can now test if it works in the DEV registry.

maurovanetti commented 2 days ago

It works perfectly! Thank you.