Skip to content

Commit

Permalink
GITC-4619 Cache time-service requests
Browse files Browse the repository at this point in the history
  • Loading branch information
jtroberts committed Jul 13, 2024
1 parent 3e97426 commit c4d649b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker/time_service/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ RUN luarocks make onearth_time_service-0.1-2.rockspec
WORKDIR /home/oe2/onearth/docker
RUN cp 00-mpm.conf /etc/httpd/conf.modules.d/ && \
cp 10-worker.conf /etc/httpd/conf.modules.d/ && \
cp cors.conf /etc/httpd/conf.d/
cp cors.conf /etc/httpd/conf.d/ && \
cp ./time_service/cache.conf /etc/httpd/conf.d/
WORKDIR /home/oe2/onearth/docker/time_service

# Install layer configuration tools
Expand Down
15 changes: 15 additions & 0 deletions docker/time_service/cache.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
CacheQuickHandler off
CacheRoot /tmp/
CacheEnable disk /
CacheDirLevels 4
CacheDirLength 5
CacheMaxFileSize 200000000
CacheIgnoreNoLastMod On
CacheDefaultExpire 1800
CacheIgnoreCacheControl Off
CacheLastModifiedFactor 0.5
CacheHeader on
CacheLock on
CacheDetailHeader on
ExpiresActive On
ExpiresByType application/json "access plus 30 minutes"

0 comments on commit c4d649b

Please sign in to comment.