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

Closed maurovanetti closed 4 months ago

maurovanetti commented 5 months 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 4 months 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 4 months ago

Cool!

mkurzydlowski commented 4 months ago

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

maurovanetti commented 4 months ago

It works perfectly! Thank you.

mkurzydlowski commented 4 months ago

PROD registry should also work now.