Skip to content

Commit

Permalink
b/260921498 Disable browser caching (#20)
Browse files Browse the repository at this point in the history
Disable caching for all content to avoid presenting
stale data, and to prevent issues after applying a version
update.

Note that most long-lived content (jquery, etc) is served
from a CDN anyway.
  • Loading branch information
jpassing authored Dec 1, 2022
1 parent fae5fad commit 3efca38
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion sources/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,14 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# Set the port to the PORT environment variable
quarkus.http.port=${PORT:8080}
quarkus.package.type=uber-jar
quarkus.banner.enabled=false

# Disable banner in logs
quarkus.banner.enabled=false

# Disable browser caching (most static assets are loaded from a CDN anyway).
quarkus.http.header."Cache-Control".value=no-cache

0 comments on commit 3efca38

Please sign in to comment.