Skip to content

Commit

Permalink
feat: added cache control header for theme images (#24)
Browse files Browse the repository at this point in the history
* feat: added cache control header for theme images

* feat: changed path
  • Loading branch information
JordenReuter authored May 15, 2024
1 parent ea3066c commit 23ee996
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/modules/onecx-shell-bff/pages/onecx-shell-bff-docs.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ org.eclipse.microprofile.rest.client.propagateHeaders=apm-principal-token
%prod.quarkus.rest-client.onecx_product_store_svc.url=http://onecx-product-store-svc:8080
%prod.quarkus.rest-client.onecx_permission_svc.url=http://onecx-permission-svc:8080
%prod.quarkus.rest-client.onecx_user_profile_svc.url=http://onecx-user-profile-svc:8080
quarkus.http.filter.images.header."Cache-Control"=max-age=432000
quarkus.http.filter.images.matches=/themes/*
onecx.component.mock.keys[0]=portalmenu
%prod.quarkus.oidc-client.client-id=${quarkus.application.name}
quarkus.openapi-generator.codegen.input-base-dir=target/tmp/openapi
Expand Down Expand Up @@ -78,3 +80,4 @@ app:
----


4 changes: 4 additions & 0 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ org.eclipse.microprofile.rest.client.propagateHeaders=apm-principal-token
%prod.quarkus.rest-client.onecx_permission_svc.url=http://onecx-permission-svc:8080
%prod.quarkus.rest-client.onecx_user_profile_svc.url=http://onecx-user-profile-svc:8080

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

#MOCK FOR REMOTE COMPONENTS => should be removed when implemented
onecx.component.mock.keys[0]=portalmenu

Expand Down

0 comments on commit 23ee996

Please sign in to comment.