Commit graph

14 commits

Author SHA1 Message Date
Mantas Masalskis
a1b9ef2bbb Maintenance: Update copyright information. 2026-01-02 15:41:09 +02:00
Martin Gruner
47e5136bea Maintenance: Improve cache-control header configuration 2025-06-17 07:50:39 +02:00
Mantas Masalskis
10f627cb69 Maintenance: Update copyright information 2025-01-01 17:39:43 +02:00
Dominik Klein
e054d6ca79 Maintenance: Update copyright information. 2024-01-02 11:55:19 +01:00
Martin Gruner
9aa28c6ba5 Maintenance: Switch to Rails default HTTP cache handling.
Zammad used to have some custom HTTP cache handling code, which turned out to be obsolete and thus removed for better maintainability.
- `Pragma` is deprecated and not recommended to be used any more
- `Expires` is not really needed, if `Cache-Control` sets a `max-age`
- `Cache-control`: `no-store` includes `no-cache`. Other directives like `max-age` and `must-revalidate` are irrelevant in this case.

The Rails default response header of `max-age=0, private, must-revalidate` should be perfect to enforce requests to always be sent to the server, rather than served from the cache.

See also 
- https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control
- https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Expires
- https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Pragma
2023-05-03 12:03:57 +02:00
Florian Liebe
9dfc232536 Maintenance: Update copyright information. 2023-01-02 16:19:55 +01:00
Martin Gruner
d7b8b3662f Maintenance: Updated to Rails 6.1. 2022-03-22 10:14:09 +01:00
Martin Gruner
24c3bdfd87 Maintenance: Update copyright header. 2022-01-01 14:38:12 +01:00
Martin Gruner
64a87b1c67 Fixes #2709, fixes #2666, fixes #2665, fixes #556, fixes #3275 - Refactoring: Implement new translation toolchain based on gettext.
- Translations are no longer fetched from the cloud.
- Instead, they are extracted from the codebase and stored in i18n/zammad.pot.
- Translations will be managed via a public Weblate instance soon.
- The translated .po files are fed to the database as before.
- It is now possible to change "translation" strings for en-us locally via the admin GUI.
- It is no longer possible to submit local changes.
2021-11-15 16:58:19 +01:00
Martin Gruner
5df98684da Maintenance: Update copyright information and add a new rubocop cop to watch over it. 2021-06-01 12:20:20 +00:00
Rolf Schmidt
1cbb139476 Enhancement: Made CORS Preflight Check specification conform. 2020-03-04 10:00:55 +01:00
Rolf Schmidt
deaac071cb Enhancement: Requests should never be cached by the browser. 2020-03-04 10:00:55 +01:00
Thorsten Eckel
9af50f2a4e Updated rubocop to latest version (0.59.2) and applied required changes. 2018-10-09 08:17:41 +02:00
Thorsten Eckel
5eb49443dd Refactoring: Splitted ApplicationController functionality into separat modules and concerns. 2017-03-09 15:31:26 +01:00