netgroup-polito / CrownLabs

Kubernetes-based Remote Laboratories
https://crownlabs.polito.it
Apache License 2.0
107 stars 42 forks source link

Frontend: configure caching policy in nginx.conf #783

Closed giorio94 closed 2 years ago

giorio94 commented 2 years ago

Description

This PR enhances the nginx configuration file of the frontend, to introduce directives concerning the caching policy of the different resources. In particular, it enforces non versioned resources are always revalidated with the upstream, while static assets can be freely cached as versioned.

Fixes # (issue)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Please also note any relevant details for your test configuration.

giorio94 commented 2 years ago

/deploy-staging

kingmakerbot commented 2 years ago

Hi @giorio94. Thanks for your PR.

I am @kingmakerbot. You can interact with me issuing a slash command in the first line of a comment. Currently, I understand the following commands:

Make sure this PR appears in the CrownLabs changelog, adding one of the following labels:

kingmakerbot commented 2 years ago

Your staging environment has been correctly deployed/updated! Available here: Frontend, Qlkube Operators: add the crownlabs.polito.it/operator-selector=staging-783 label to your tenant.

giorio94 commented 2 years ago

/merge

kingmakerbot commented 2 years ago

Your staging environment has been correctly teared-down!