Kevin Ring
a59ffac3ef
A few more test cases, and tweak the logic so they pass.
2023-07-27 22:00:58 +10:00
Brian L
8abe88353a
Add support for cases where we only need Etag or Last-Modified to cache
2023-07-26 09:52:51 -06:00
Brian L
53689f1123
Modify shouldCacheRequest for additional no-cache cases. Add more unit tests
2023-07-25 12:21:13 -06:00
Brian L
a72438bec0
Remove redundant code from shouldRevalidateCache()
2023-07-25 11:33:45 -06:00
Brian L
018a7380b8
Refactor using std::optional. Fixup unit tests
2023-07-25 11:11:23 -06:00
Brian L
2227dd6cd9
Back out check for etag and last-modified
...
We can still cache requests without this. Logic error caught by unit tests.
2023-07-21 16:58:25 -06:00
Brian L
6733535218
Handle noCache properly
...
Let it store to cache, but always indicate stale (needs to revalidate)
2023-07-21 15:34:51 -06:00
Brian L
2e966fbeae
Modify ResponseCacheControl to support checking for existence of directives with values
...
Add additional logic to shouldCacheRequest:
- Return false if no etag or last-modified header exists, can't revalidate
- If cache control and max age (or s max age) exists, ignore Expires header
2023-07-21 14:58:30 -06:00
Brian L
fa24d9fd92
Let stale-while-revalidate requests now go to disk cache
2023-07-19 11:26:37 -06:00
Brian L
2b0911d4a0
Run clang-format
2023-07-19 10:50:17 -06:00
Brian L
6ab9f41ad5
Add stale-while-revalidate support to ResponseCacheControl class
2023-07-19 10:27:35 -06:00
Kevin Ring
224f392c31
Cleanup and tests.
2023-06-01 11:45:24 +10:00
Joseph Kaile
0284c86f30
use decorator pattern for gunip asset accessor
2023-05-25 13:07:26 -04:00
Joseph Kaile
84f2e8f550
automatically unzip data if gzipped data is detected
2023-05-18 13:11:49 -04:00
Kevin Ring
f31638fbfa
Cleaner RasterOverlay error reporting.
2022-10-18 17:59:23 +11:00
Kevin Ring
28c6310383
Update cache last access time correctly.
2022-08-03 20:56:31 +10:00
Joseph Kaile
4ef3e54c7a
create connection even if deleting file somehow fails
2022-04-20 14:35:38 -04:00
Joseph Kaile
c88a5d84ab
delete and recreate sqlite connection if it detects corruption
2022-04-20 13:20:47 -04:00
Joseph Kaile
6379592122
prevent possible crash when parsing bad json string
2022-04-19 17:10:19 -04:00
Kevin Ring
0e7830d373
Formatting.
2022-01-25 20:39:19 +11:00
Kevin Ring
a5e3f11846
Impl->CesiumImpl, TWO_PI->TwoPi.
2022-01-25 11:55:43 +11:00
Kevin Ring
f498c631de
startRequest -> reqest.
2022-01-20 11:08:23 +11:00
Kevin Ring
518b7cbaf0
Rename IAssetAccessor methods, allow use of any verb.
2022-01-20 11:00:29 +11:00
Sean Lilley
52283f3359
Fix includes
2021-10-11 17:28:44 -04:00
Marco Hutter
27fdd26e27
Merge remote-tracking branch 'origin/main' into include-style-fixes
...
# Conflicts:
# Cesium3DTilesSelection/include/Cesium3DTilesSelection/GltfContent.h
# Cesium3DTilesSelection/src/Batched3DModelContent.cpp
# Cesium3DTilesSelection/src/CompositeContent.cpp
# Cesium3DTilesSelection/src/ExternalTilesetContent.cpp
# Cesium3DTilesSelection/src/GltfContent.cpp
# Cesium3DTilesSelection/src/QuantizedMeshContent.cpp
# Cesium3DTilesSelection/src/Tile.cpp
# Cesium3DTilesSelection/src/TileContentFactory.cpp
# Cesium3DTilesSelection/src/calcQuadtreeMaxGeometricError.h
2021-09-28 14:38:33 +02:00
Kevin Ring
62ff744d4f
Treat `<something.h>` as third-party include.
2021-09-27 10:46:26 +10:00
Marco Hutter
0e827f7afd
Updated includes based on clang-format with Regroup
...
This MAINLY inserted some blank lines between
the blocks.
2021-09-26 17:46:27 +02:00
Marco Hutter
01cf10590c
Formatting
2021-09-19 15:43:55 +02:00
Marco Hutter
11048cac88
Include fix for rapidjson
...
Accidentally used forwards in implementation
2021-09-19 15:37:50 +02:00
Marco Hutter
6a6b3b60c8
Include style fixes for CesiumAsync
2021-09-19 15:15:13 +02:00
Marco Hutter
bb48dd1c86
Merge remote-tracking branch 'origin/main' into fix-vs-warnings
...
# Conflicts:
# Cesium3DTilesSelection/src/Tileset.cpp
2021-09-17 21:25:48 +02:00
Marco Hutter
46c9c7ec7d
Formatting after adding const
2021-09-15 15:38:06 +02:00
Marco Hutter
de8145ab9e
Added missing const keyword
...
C26496: The variable ... is assigned only once, mark it as const
2021-09-15 15:37:29 +02:00
Marco Hutter
a84b09c238
Added further noexcept specifiers
2021-09-15 02:35:40 +02:00
Ian Lilley
265f0be89f
fixed formatting
2021-09-08 15:30:36 -04:00
Ian Lilley
51fc68e97b
fixed cachedControlIter type
2021-09-08 15:18:47 -04:00
Kevin Ring
f86ab223b7
Fix race condition in tests.
2021-07-16 11:09:17 +10:00
Kevin Ring
d836b63b51
Rename dispatchZeroOrOneMainThreadTask to dispatchOneMainThreadTask.
...
And also improve its doc.
2021-07-14 17:01:51 +10:00
Kevin Ring
490114c648
Add some tests for AsyncSystem.
2021-07-06 19:01:46 +10:00
Kevin Ring
a74941bf53
Refactor schedulers.
2021-06-27 22:37:32 +10:00
Kevin Ring
f0ee99a714
Actually track the thread pool threads.
2021-06-26 23:14:12 +10:00
Kevin Ring
38a1faea12
Better names for tracing macros.
2021-06-26 00:11:52 +10:00
Kevin Ring
8b7832ba83
WIP overhaul of macros for tracing across threads.
2021-06-25 21:11:40 +10:00
Kevin Ring
669bdefeec
Fix clang warnings.
2021-06-22 21:00:28 +10:00
Kevin Ring
43c5b3d474
Fix test failures.
2021-06-22 18:17:32 +10:00
Kevin Ring
6ece726757
Fix problems when tracing is disabled.
2021-06-22 17:19:33 +10:00
Kevin Ring
0fa144f516
Make "immediately" the default for continuations.
2021-06-22 15:31:30 +10:00
Kevin Ring
09b4e393de
More cleanup of tracing macros.
2021-06-22 12:26:07 +10:00
Kevin Ring
44a69d4cda
Clean up tracing API.
2021-06-21 17:33:59 +10:00
Kevin Ring
fa285f7d29
Access cache DB from a dedicated thread.
2021-06-16 17:29:47 +10:00