6.0.0-beta13
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
4/12/26
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
>> In static/ are put the minified .js and .css files, which are sent to >> the user's browser. If the webserver is configured properly, the >> minified .js/.css files are cached on the user's side and the server >> load on subsequent requests is minified this way. So far so good. >> >> Another possible optimization is to pre-compress the files in >> /static, so that for each file a .js/css plain and .js.gz/.css.gz >> version exists. > > Do you mean automatically creating the files to then compress them? > This can't happen because the payload for any given page is not known > until the page is created. > >> The instructions for some webservers, how to call the precompressed >> files vary. For Apache httpd you can find instructions that procees >> .gzip files, for Nginx you have just to say "gzip_static on;" and the >> server starts preferring files with .js.gz extenstion and when a file >> .js is requested. > > We **really** don't want to get into the business of trying to track > the ways various httpd servers can compress data. I wouldn't mind a > 1 or 2 sentence blurb on this in PERFORMANCE, but we are not going to > provide individual examples. That is up to the server admin to > figure out. > > If others want to provide real-life examples on the wiki, that is the > more appropriate place to put this information since it is not > directly Horde-related. > >> Please extend the Horde configuration to ask the site adminsitrators, >> if they want to have in /static pre-compressed .js and .css files, >> and if yes, if they want .gzip or .gz extension for those files. (or >> just create the .gz files in addition to the rest and that's all. > > This is not a Horde configuration issue, since it is not something we > can control out of the box. > >> Please mention this bug in >> http://www.horde.org/apps/horde/docs/PERFORMANCE , or write some >> alternative text to enable serving of pre-compression files on the >> webserver. > > Still don't know what you mean by "pre-compression". I know certain > servers (e.g. lighttpd) cache the gzip'd versions, but this is beyond > the scope of Horde or Horde's configuration.
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