Project

General

Profile

Actions

Bug #52597

closed

Compressor: Fetch external files correctly

Added by Stefan Neufeind over 10 years ago. Updated over 7 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2013-10-07
Due date:
% Done:

0%

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

Description

The ResourceCompressor currently only handles external files correctly for compression if they are also already "merged" in the step before. For files that should stay separate (not merged) an incorrect filename is created, the external file is not fetched, and finally an "empty" file is being compressed.


Related issues 4 (0 open4 closed)

Related to TYPO3 Core - Bug #32517: t3lib_compressor set local filename to remote uri for external resourcesClosed2011-12-13

Actions
Related to TYPO3 Core - Bug #40409: typo3temp/compressor is flooded with identical filesClosedJigal van Hemert2012-08-30

Actions
Related to TYPO3 Core - Bug #29695: t3lib_Compressor fails with external filesClosedXavier Perseguers2011-09-12

Actions
Related to TYPO3 Core - Bug #71486: Empty Compressed CSS file in iframe with external file in f:be.containerClosedMathias Schreiber2015-11-11

Actions
Actions #1

Updated by Stefan Neufeind over 10 years ago

The merger already has the relevant code to check filenames for being an url and fetch them if needed. This just needs to be split out and be called in both places.

TypoScript-code to reproduce it:
page = PAGE
page {
config {
compressCss = 1
concatenateCss = 1
extTarget = _blank
}

includeCSS {
accordionCss = http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css
accordionCss.excludeFromConcatenation = 1
#accordionCss.disableCompression = 1
accordionCss.external = 1
accordionCssOverwritten = fileadmin/sys/Public/StyleSheet/accordionCssOverwritten.css
}
}
Cases to try out:
  • excludeFromConcatenation BUT NOT disableCompression (like here): empty file gets compressed
  • excludeFromConcatenation AND disableCompression: external file gets referenced directly (external URL is kept as is)
  • excludeFromConcatenation: file is fetched be the merger already and afterwards exists as a "local" file
Actions #2

Updated by Gerrit Code Review over 10 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/24471

Actions #3

Updated by Gerrit Code Review over 10 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/24471

Actions #4

Updated by Stefan Neufeind over 10 years ago

The same goes for JS of course (added with patchset 2 on gerrit).

page {
config {
compressJs = 1
concatenateJs = 1
}
includeJS {
jquery = http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
jquery.excludeFromConcatenation = 1
#jquery.disableCompression = 1
jquery.external = 1
}
}
Actions #5

Updated by Gerrit Code Review over 10 years ago

Patch set 3 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/24471

Actions #6

Updated by Gerrit Code Review over 10 years ago

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

Actions #7

Updated by Gerrit Code Review over 10 years ago

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

Actions #8

Updated by Gerrit Code Review over 10 years ago

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/24471

Actions #9

Updated by Gerrit Code Review about 9 years ago

Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/24471

Actions #10

Updated by Gerrit Code Review about 9 years ago

Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/24471

Actions #11

Updated by Gerrit Code Review almost 9 years ago

Patch set 9 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/24471

Actions #12

Updated by Gerrit Code Review over 7 years ago

Patch set 10 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/24471

Actions #13

Updated by Christian Kuhn over 7 years ago

  • Status changed from Under Review to Rejected

Ok, I think we should get rid of that patch: The feature "fetch external file locally" is imho bogus in the first place, should be deprecated and removed. There is no point in doing that, an external resource should stay that way. Thus, there is also no point in fixing the follow-up problem that the compressor doesn't properly deal with that.
abandoned, rejected, we should remove the 'fetch external resources to make them local'.

Actions

Also available in: Atom PDF