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

Updating the Service Access Information - Support for the expires header #51 #55

Merged
merged 12 commits into from
Mar 15, 2024

Conversation

shilinding
Copy link
Contributor

@shilinding shilinding commented Jan 24, 2024

#51

  1. Support for the expires header
  2. In case both max-age and expires are present the values shall be translated to absolute times, compared and the earlier value shall be used.
  3. In case none of the headers are defined, we use a static configurable refresh value like 10 minutes.
  4. If in Cache-Control header the max-age = 0, keep this behavior as we are expecting the server wants us to do an immediate refresh. We are expecting a different value of max-age with the next response.
  5. If an age header is present, that value shall be subtracted from the value defined in max-age.

Shilin Ding and others added 8 commits November 24, 2023 17:43
1. In case both max-age and expires are present the values shall be translated to absolute times, compared and the earlier value shall be used.
2.  In case none of the headers are defined, we use a static configurable refresh value like 10 minutes.
1. support Age
2. remove log
3. add comment
@dsilhavy dsilhavy added this to the Version 1.1.1 milestone Jan 25, 2024
1. Only import the classes that need instead of the whole package
2. Refine and remove warnings
3. Reformat the code: The { in the same line
4. Rename variants
@dsilhavy dsilhavy modified the milestones: Version 1.1.1, Version 1.2.0 Feb 26, 2024
Shilin Ding added 2 commits February 29, 2024 11:59
Refactor code: extract functions
…d value be configured in configuration file
@dsilhavy dsilhavy merged commit 2b4a6fd into 5G-MAG:development Mar 15, 2024
1 check failed
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.

2 participants