目录
Nathan Zender

specifying a cache value we must not use ALWAYS unless its NO CACHE (#137)

https://github.com/lab-sync/sensor-monitor/pull/83#discussion_r2975365382

Why is this change necessary?

We do want always on 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/420e88bd377e5ef0d955183d3a2159688ceb243d

How does this change address the issue?

Removes the always flag on the nuxt static resources

What 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.
25天前111次提交

pre-commit Copier Actions status Open in Dev Containers OpenIssues

Usage

To create a new repository using this template:

  1. Create a basic devcontainer either using the Codespaces default or using the file .devcontainer/devcontainer-to-instantiate-template.json from the base template repo
  2. Inside that devcontainer, run python .devcontainer/install-ci-tooling.py to 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)
  3. Delete all files currently in the repository. Optional…but makes it easiest to avoid git conflicts.
  4. Run copier to instantiate the template: copier copy --trust gh:LabAutomationAndScreening/copier-nuxt-python-intranet-app.git .
  5. Run python .devcontainer/manual-setup-deps.py --only-create-lock --allow-uv-to-install-python to generate the lock file(s)
  6. Stage all files to prepare for commit (git add .)
  7. Run python3 .github/workflows/hash_git_files.py . --for-devcontainer-config-update to update the hash for your devcontainer file
  8. Commit the changes (optional)
  9. Rebuild your new devcontainer

Development

Obtaining the GraphiQL files to bundle

  1. Navigate into the static folder: cd "template/{% if has_backend %}backend{% endif %}/src/static/{% if frontend_uses_graphql %}static{% endif %}/graphiql"
  2. Confirm by viewing the source of a non-altered GraphiQL page that these are the files to download
  3. curl https://unpkg.com/react@18.2.0/umd/react.production.min.js > react.production.min.js
  4. curl https://unpkg.com/react-dom@18.2.0/umd/react-dom.production.min.js > react-dom.production.min.js
  5. curl https://unpkg.com/js-cookie@3.0.5/dist/js.cookie.min.js > js.cookie.min.js
  6. curl https://unpkg.com/graphiql@3.8.3/graphiql.min.css > graphiql.min.css
  7. curl https://unpkg.com/@graphiql/plugin-explorer@1.0.2/dist/style.css > style.css
  8. curl https://unpkg.com/graphiql@3.8.3/graphiql.min.js > graphiql.min.js
  9. curl https://unpkg.com/@graphiql/plugin-explorer@1.0.2/dist/index.umd.js > index.umd.js

Updating 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

邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9 京公网安备 11010802032778号