Something went wrong. Try again.
Something went wrong. Try again.
691 B · 32 lines
TypeScript
at main
123456789101112131415161718192021222324252627282930313233import { defineConfig } from '@adonisjs/static'
/** * Configuration options to tweak the static files middleware. * The complete set of options are documented on the * official documentation website. * * https://docs.adonisjs.com/guides/basics/static-file-server */const staticServerConfig = defineConfig({ /** * Enable or disable static file serving middleware. */ enabled: true,
/** * Generate ETag headers for client/proxy caching. */ etag: true,
/** * Include Last-Modified headers for conditional requests. */ lastModified: true,
/** * Policy for files starting with a dot. */ dotFiles: 'ignore',})
export default staticServerConfig