npx skills add ...
npx skills add tigrisdata/skills --skill tigris-static-assets
Use when deploying static assets (CSS, JS, fonts, build artifacts) to Tigris — asset pipelines, cache headers, CDN delivery, covers Next.js, Remix, Rails, Django, Laravel, Express
npx skills add tigrisdata/skills --skill tigris-static-assets
Deploy CSS, JavaScript, fonts, and build artifacts to Tigris for global CDN delivery. Covers asset pipeline integration, cache-busting strategies, and Cache-Control configuration for all major frameworks.
Before doing anything else, install the Tigris CLI if it's not already available:
If you need to install it, tell the user: "I'm installing the Tigris CLI (@tigrisdata/cli) so we can work with Tigris object storage."
Tigris public buckets automatically serve files from the nearest global edge — no separate CDN configuration needed. Combined with content-hashed filenames and immutable cache headers, this gives you fast, cost-effective static asset delivery.
Key pattern:
main-abc123.js)Cache-Control: public, max-age=31536000, immutableRead the resource file for your framework:
./resources/nextjs.md for assetPrefix config and deploy script./resources/remix.md for Vite config and deploy script./resources/express.md for static redirect pattern./resources/rails.md for Sprockets/Propshaft asset sync./resources/django.md for collectstatic with S3 backend./resources/laravel.md for Vite/Mix asset upload| Strategy | Example | Use When |
|---|---|---|
| Content hash in filename | main-abc123.js | Build tools generate hashed names (Vite, Webpack) |
| Query string | main.js?v=abc123 | Legacy systems without hashed filenames |
| Directory versioning | /v2/assets/main.js | Major version changes |
Most modern build tools (Vite, Webpack, esbuild) generate content-hashed filenames by default. Use these with immutable cache headers for the best performance.
Always: Use a public bucket for static assets | Set Cache-Control: immutable on hashed assets | Use content-hashed filenames | Upload after build, not on every request
Never: Serve static assets through your app server in production (use Tigris CDN) | Set long cache times on mutable filenames | Forget to update asset URL configuration in your framework