You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+31-4Lines changed: 31 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,10 +31,6 @@ Effectively consumers will always receive the most current data, while the load
31
31
* Postgres: [track_commit_timestamp](https://www.postgresql.org/docs/17/runtime-config-replication.html#GUC-TRACK-COMMIT-TIMESTAMP) is enabled. This can be done using `ALTER SYSTEM SET track_commit_timestamp to "on"` and then restarting the Postgres service
32
32
33
33
34
-
## Certificates and Chromium
35
-
36
-
Chromium, and hence the Chrome and Edge browsers, are very sensitive to certificate problems when determining if an item should be cached. Specifically, if a request is done dynamically (type: xhr) and the server is using a self-signed certificate, then the browser will not send the `if-none-match` header. [Reference](https://issues.chromium.org/issues/40666473). If self-signed certificates are required during development in lower environment, then use FireFox to test the caching behavior.
37
-
38
34
39
35
## 304 Not Modified Flow
40
36
@@ -759,6 +755,37 @@ alter table [{table}] disable change_tracking;
759
755
<!-- endSnippet -->
760
756
761
757
758
+
## Verifying behavior
759
+
760
+
The behavior of Delta can be verified as follows:
761
+
762
+
* Open a page in the site
763
+
* Open the browser developer tools
764
+
* Change to the Network tab
765
+
* Refresh the page.
766
+
767
+
Cached responses will show as 304 in the `Status`:
768
+
769
+
<imgsrc="/src/network.png">
770
+
771
+
In the headers `if-none-match` will show in the request and `etag` will show in the response:
772
+
773
+
<imgsrc="/src/network-details.png">
774
+
775
+
776
+
### Ensure cache is not disabled
777
+
778
+
If disable cache is checked, the browser will not send the `if-none-match` header. This will effectively cause a cache miss server side, and the full server pipeline will execute.
779
+
780
+
<imgsrc="/src/disable-cache.png">
781
+
782
+
783
+
### Certificates and Chromium
784
+
785
+
Chromium, and hence the Chrome and Edge browsers, are very sensitive to certificate problems when determining if an item should be cached. Specifically, if a request is done dynamically (type: xhr) and the server is using a self-signed certificate, then the browser will not send the `if-none-match` header. [Reference](https://issues.chromium.org/issues/40666473). If self-signed certificates are required during development in lower environment, then use FireFox to test the caching behavior.
786
+
787
+
788
+
762
789
## Programmatic client usage
763
790
764
791
Delta is primarily designed to support web browsers as a client. All web browsers have the necessary 304 and caching functionally required.
Copy file name to clipboardExpand all lines: readme.source.md
+31-4Lines changed: 31 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,10 +24,6 @@ Effectively consumers will always receive the most current data, while the load
24
24
* Postgres: [track_commit_timestamp](https://www.postgresql.org/docs/17/runtime-config-replication.html#GUC-TRACK-COMMIT-TIMESTAMP) is enabled. This can be done using `ALTER SYSTEM SET track_commit_timestamp to "on"` and then restarting the Postgres service
25
25
26
26
27
-
## Certificates and Chromium
28
-
29
-
Chromium, and hence the Chrome and Edge browsers, are very sensitive to certificate problems when determining if an item should be cached. Specifically, if a request is done dynamically (type: xhr) and the server is using a self-signed certificate, then the browser will not send the `if-none-match` header. [Reference](https://issues.chromium.org/issues/40666473). If self-signed certificates are required during development in lower environment, then use FireFox to test the caching behavior.
Cached responses will show as 304 in the `Status`:
326
+
327
+
<imgsrc="/src/network.png">
328
+
329
+
In the headers `if-none-match` will show in the request and `etag` will show in the response:
330
+
331
+
<imgsrc="/src/network-details.png">
332
+
333
+
334
+
### Ensure cache is not disabled
335
+
336
+
If disable cache is checked, the browser will not send the `if-none-match` header. This will effectively cause a cache miss server side, and the full server pipeline will execute.
337
+
338
+
<imgsrc="/src/disable-cache.png">
339
+
340
+
341
+
### Certificates and Chromium
342
+
343
+
Chromium, and hence the Chrome and Edge browsers, are very sensitive to certificate problems when determining if an item should be cached. Specifically, if a request is done dynamically (type: xhr) and the server is using a self-signed certificate, then the browser will not send the `if-none-match` header. [Reference](https://issues.chromium.org/issues/40666473). If self-signed certificates are required during development in lower environment, then use FireFox to test the caching behavior.
344
+
345
+
346
+
320
347
## Programmatic client usage
321
348
322
349
Delta is primarily designed to support web browsers as a client. All web browsers have the necessary 304 and caching functionally required.
0 commit comments