Project

General

Profile

Actions

Bug #24200

closed

?1234567 on included CSS and JS breaks browser cache

Added by Christian Boltz almost 14 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
Communication
Target version:
-
Start date:
2010-11-24
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Since Typo3 4.4, the CSS and JavaScript files that are included by typo3 get "?1234567" (number varying) attached. Real exmples:

<link rel="stylesheet" type="text/css" href="typo3temp/stylesheet_fb20638762.css?1290624400" media="all">

<script src="typo3conf/ext/jquerycolorbox/res/js/jquery.js?1290624128" type="text/javascript"></script>

The problem with this: Firefox (and maybe also other browsers) interpret the ?1234567 as querystring and think it's a dynamic file.

The result is that the browser sends a request for all those files to the server on every page you load. Of course it will nearly always get a "403 not modified" response, but it still hurts performance without a real need.

I'd strongly recommend to remove the ?1234567 suffix again.

1. go to a page that is using Typo3 4.4 or newer
2. click any internal link (say: imprint)
3. click another internal link (say: contact)
4. login on the server and start watching the apache access log - or - use the network monitor of Firebug
5. click on the first used internal link (imprint) again

Expected result:
- all files are cached
- only the HTML is requested from the server

Actual result:
- the browser re-requests all CSS and JS files that have ?1234567 attached

(issue imported from #M16562)

Actions

Also available in: Atom PDF