Skip to content

Disable Browser Caching for RAW view #13499

Closed
@liszca

Description

@liszca
  • Gitea version (or commit ref):
  • Git version: 1.12.5
  • Operating system: Debian 10
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
  • Log gist:

Description

Because of browser caching (in this case Firefox 82.0.2), the RAW file view may not represent the actual file content when Edit was done in browser beforehand.

The first screenshot shows what was saved, the second is Raw view.

It can be solved by clearing the cache of the browser, but is it possible to solve this on the server side?
...

Screenshots

grafik
grafik

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions