6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
10/20/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#11017] precompress files in /static
*
Your Email Address
*
Spam protection
Enter the letters below:
.. ,. .. .. . | \./ |__||\/|\ / \__| | | || | \/
Comment
>> With pre-compression I mean to extend Horde to create for each >> static/f.js a corresponding static/f.js.gz and for each static/k.css >> a corresponding static/k.css.gz file at the same time the original >> file (without .gz) is created. > > Why? What good is a *.gz file unless the *web server* delivers it as > such. You can't just place a .gz file in a directory and expect a > webserver to use that when the base file is accessed. This demands > additional configuration on the webserver, so putting an option in > horde's conf.php that doesn't do anything by default on is not > desirable. Especially when there are other options available on the > webserver side that does this all transparently. Why configure 2 > locations when you only have to configure 1? > >> When a browser requests static/m.js and does Accept-Encoding: gzip, >> the webserver checks if static/m.js.gz exists, and sends >> static/m.js.gz to the browser,(instead static/m.js) stating the >> response is gzip-encoded. > > And you just proved my point. As you write "When a browser requests > [the file] ... the WEBSERVER checks...." This is by no means the > default action for webservers and requires additional configuration. > >> I know the payload for any html page is not known until the page is >> created, however this is not true exactly true for javascript/css >> files, which are created once but delivered several times. > > This is an incorrect statement. The CSS for any given page is not > known until someone accesses that page for the first time, just like > the javascript files. > >> I think this functionality belongs to Horde and it is not up to each >> single administrator to find ways to compress the .js/.css files from >> static/ . > > Disagree. > > I recommend you look at lighttpd and the mod_compress module, > specifically compress-cachedir, which does all this compression > transparently.
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers