Skip to content

Add .htaccess, remove the hard reload function! #189

@falue

Description

@falue

maybe parts of this in .htaccess:

# -------------------------
# Cache-Control headers
# -------------------------
<IfModule mod_headers.c>
  # HTML: always revalidate so new hashed asset URLs are picked up
  <FilesMatch "^(index\.html)?$">
    Header set Cache-Control "no-cache"
  </FilesMatch>

  # Hashed assets: cache "forever"
  <FilesMatch "\.(js|css|png|jpg|jpeg|gif|svg|webp|ico|woff2?)$">
    Header set Cache-Control "public, max-age=31536000, immutable"
  </FilesMatch>
</IfModule>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions