Skip to content

Commit

Permalink
Merge pull request #9 from Kros-sk/Burgyn-patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
Burgyn authored Aug 2, 2024
2 parents d5475b0 + 3eec8f2 commit 77b0376
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,24 @@ based on this value. If they are up to date it returns a status of `304 Not Modi

On the client, this works automatically because this behavior is defined in the HTTP specification (no need to do anything).

![image](https://github.com/user-attachments/assets/b618616c-8f5c-48de-b169-22f32286be55)
```mermaid
sequenceDiagram
participant Browser
participant Server
Browser->>Server: Request
Server-->>Browser: Response with ETag and Cache-Control headers
note right of Server: Caches ETag with request info
Browser->>Server: Request with ETag header
alt ETag unchanged
Server-->>Browser: 304 Not Modified
else ETag changed
Server-->>Browser: Response with new ETag and data
note right of Server: Generates new ETag
end
```

## Implementation

Expand Down

0 comments on commit 77b0376

Please sign in to comment.