Skip to content

Commit

Permalink
feat: added cache control header property for images
Browse files Browse the repository at this point in the history
  • Loading branch information
JordenReuter committed May 15, 2024
1 parent 3e0ac28 commit 51aedfa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ quarkus.http.auth.permission.default.paths=/*
quarkus.http.auth.permission.default.policy=authenticated
onecx.permissions.application-id=${quarkus.application.name}
org.eclipse.microprofile.rest.client.propagateHeaders=apm-principal-token
quarkus.http.filter.images.header."Cache-Control"=max-age=432000
quarkus.http.filter.images.matches=/images/*
%prod.quarkus.rest-client.onecx_product_store_internal.url=http://onecx-product-store-svc:8080
%prod.quarkus.rest-client.onecx_image_internal.url=http://onecx-product-store-svc:8080
%prod.quarkus.rest-client.onecx_workspace_svc_external_v1.url=http://onecx-workspace-svc:8080
Expand Down
4 changes: 4 additions & 0 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ onecx.permissions.application-id=${quarkus.application.name}
# propagate the apm-principal-token from requests we receive
org.eclipse.microprofile.rest.client.propagateHeaders=apm-principal-token

# cache control
quarkus.http.filter.images.header."Cache-Control"=max-age=432000
quarkus.http.filter.images.matches=/images/*

# PROD
%prod.quarkus.rest-client.onecx_product_store_internal.url=http://onecx-product-store-svc:8080
%prod.quarkus.rest-client.onecx_image_internal.url=http://onecx-product-store-svc:8080
Expand Down

0 comments on commit 51aedfa

Please sign in to comment.