specifying a cache value we must not use ALWAYS unless its NO CACHE (#137)
Link to Issue or Message thread
https://github.com/lab-sync/sensor-monitor/pull/83#discussion_r2975365382
Why is this change necessary?
We do want
alwayson the NO CACHE scenarios so that it never caches but for this one where we are trying to make sure it caches we dont want it b/c we could end up caching errors when we dont want that behavior. I missed it when it suggested this change. https://github.com/LabAutomationAndScreening/copier-nuxt-python-intranet-app/commit/420e88bd377e5ef0d955183d3a2159688ceb243dHow does this change address the issue?
Removes the
alwaysflag on the nuxt static resourcesWhat side effects does this change have?
N/A
How is this change tested?
N/A
Summary by CodeRabbit
- Chores
- Adjusted server response header behavior so caching headers are applied more appropriately depending on how assets are served. Static asset responses will now receive caching directives only in the intended response contexts, while proxied responses consistently include caching and related headers to ensure predictable client-side caching behavior.
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802032778号
Usage
To create a new repository using this template:
.devcontainer/devcontainer-to-instantiate-template.jsonfrom the base template repopython .devcontainer/install-ci-tooling.pyto install necessary tooling to instantiate the template (you can copy/paste the script from this repo…and you can paste it in the root of the repo if you want)copier copy --trust gh:LabAutomationAndScreening/copier-nuxt-python-intranet-app.git .python .devcontainer/manual-setup-deps.py --only-create-lock --allow-uv-to-install-pythonto generate the lock file(s)git add .)python3 .github/workflows/hash_git_files.py . --for-devcontainer-config-updateto update the hash for your devcontainer fileDevelopment
Obtaining the GraphiQL files to bundle
cd "template/{% if has_backend %}backend{% endif %}/src/static/{% if frontend_uses_graphql %}static{% endif %}/graphiql"curl https://unpkg.com/react@18.2.0/umd/react.production.min.js > react.production.min.jscurl https://unpkg.com/react-dom@18.2.0/umd/react-dom.production.min.js > react-dom.production.min.jscurl https://unpkg.com/js-cookie@3.0.5/dist/js.cookie.min.js > js.cookie.min.jscurl https://unpkg.com/graphiql@3.8.3/graphiql.min.css > graphiql.min.csscurl https://unpkg.com/@graphiql/plugin-explorer@1.0.2/dist/style.css > style.csscurl https://unpkg.com/graphiql@3.8.3/graphiql.min.js > graphiql.min.jscurl https://unpkg.com/@graphiql/plugin-explorer@1.0.2/dist/index.umd.js > index.umd.jsUpdating from the template
This repository uses a copier template. To pull in the latest updates from the template, use the command:
copier update --trust --conflict rej --defaults