Project

General

Profile

Actions

Feature #104914

closed

Clients should never cache, but only shared caches should be allowed

Added by Benni Mack about 2 months ago. Updated 16 days ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Caching
Target version:
Start date:
2024-09-11
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

When a page is fully cacheable ("client-cacheable"), TYPO3 either sends NO HTTP Response Headers, or - when set - config.sendCacheHeaders = 1 - headers so the client (= the browser) is allowed to cache a page.

Imagine this in combination with config.cache_timeout = 604.800 (60*60*24*7 = 7 days) - this would mean, that your clients would only see updated content if they
a) clear the browser cache
b) hit shift-enter

Otherwise, TYPO3 says "Hey, you can cache this for 7 days". and the HTTP Headers say so.

This is usually not what you want. Nowadays, you want the client to actually check again and have your server respond again with the cached variant (if available) or with fresh content.

However, we could leverage "Cache-Control: s-maxage=12345" which allows for shared caches (which one could have under control) to keep a cached version instead of asking the webserver.

Actions #1

Updated by Gerrit Code Review about 2 months ago

  • Status changed from New to Under Review

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/86007

Actions #2

Updated by Gerrit Code Review about 2 months ago

Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/86007

Actions #3

Updated by Gerrit Code Review about 2 months ago

Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/86007

Actions #4

Updated by Gerrit Code Review about 2 months ago

Patch set 5 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/86007

Actions #5

Updated by Benni Mack about 2 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #6

Updated by Benni Mack 16 days ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF