Bug #24200
closed?1234567 on included CSS and JS breaks browser cache
0%
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)