Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve persistance schema #11

Merged
merged 1 commit into from
Aug 15, 2019
Merged

Improve persistance schema #11

merged 1 commit into from
Aug 15, 2019

Conversation

antoinechalifour
Copy link
Owner

  • Response are now store in a single .memento-cache folder
  • A subfolder is created for every different targetUrl (example: .memento-cache/https___pokeapi-co_api_v2 for pokeapi).
  • A subfolder is created for each request, containing two files :
    • metadata.json which contains headers, status codes, ...
    • body.{json,xml,txt} depending on the response content-type header...

...which is now nicer for editing responses manually 😁

@antoinechalifour antoinechalifour merged commit c8c9892 into master Aug 15, 2019
@antoinechalifour antoinechalifour deleted the better-persistance branch August 15, 2019 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant