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
I'm trying to setup CloudFront (AWS's CDN/cache) to work in front of a datacube-ows deployment.
We have quite a complex configuration, but I believe I've setup the correct options. GetCapabilities requests are now being cached, but GetMap/GetTile requests are not, and I can't work out why.
I'm expecting cache-control: max-age 3600 headers to be added to my requests, but instead they're still getting cache-control: no-cache headers.
ows@ows-datacube-ows-prod-b47db98-7fjdd:~$ datacube-ows --version
* Serving Flask app 'datacube_ows'
* Debug mode: off
[2023-01-25 04:43:58,592] [INFO] WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
* Running on http://127.0.0.1:5000
[2023-01-25 04:43:58,592] [INFO] Press CTRL+C to quit
Description
I'm trying to setup CloudFront (AWS's CDN/cache) to work in front of a datacube-ows deployment.
We have quite a complex configuration, but I believe I've setup the correct options. GetCapabilities requests are now being cached, but GetMap/GetTile requests are not, and I can't work out why.
I'm expecting
cache-control: max-age 3600
headers to be added to my requests, but instead they're still gettingcache-control: no-cache
headers.Steps to Reproduce
I've checked as best I can that the expected configuration is being loaded:
But when I try using this
CacheControlRules
object, it's not behaving as I'd expect.Argh, I've solved it, it seems that
max_datasets
hasn't been specified, and is defaulting to 0, which is disabling caching!I can fix it by setting it, but, it also seems like not a good default.
Context (Environment)
datacube-ows
version (datacube-ows --version):Whoops, looks like
--version
isn't implemented?ows_config.py
file (link, sample code)https://github.com/GeoscienceAustralia/dea-config/blob/master/prod/services/wms/ows_refactored/ows_reslim_cfg.py#L4-L17
datacube product metadata (datacube product show product_name)
The text was updated successfully, but these errors were encountered: