Commit graph

348 commits

Author SHA1 Message Date
Chad Weider
29548244fd Do not cache 404 responses.
This makes DOS attacks way to easy. This really needs to be replaced with an LRU (e.g. a prebuilt middleware).
2012-03-04 15:14:09 -08:00
Chad Weider
0930b64c4e Handle Windows paths correctly (again). 2012-03-04 15:07:00 -08:00
Chad Weider
57d0a2e803 Avoid orphaned cache files from breaking the caching layer. 2012-03-04 15:07:00 -08:00
Chad Weider
82652dffda Revert "Add a hack to prevent redirect of requests for /static/js/pad to /static/js/pad.js."
This reverts commit af4bd5ca65.
2012-02-28 19:00:27 -08:00
Chad Weider
45b7cafca4 Don't let filenames be changed to Windows' backslash-notation. 2012-02-28 18:29:23 -08:00
Chad Weider
45ba5d60dc Windows does not like IP addresses of 0.0.0.0. 2012-02-28 18:13:10 -08:00
Chad Weider
a7c009d0c9 Status code should not be assumed. 2012-02-28 18:09:33 -08:00
Chad Weider
118e7928b9 Headers should only be set after file is written. 2012-02-28 18:08:03 -08:00
Chad Weider
24a26953a7 Account for undefined argument. 2012-02-28 18:06:30 -08:00
Chad Weider
96ee77d85b Check error not stats. 2012-02-28 18:05:27 -08:00
Chad Weider
af4bd5ca65 Add a hack to prevent redirect of requests for /static/js/pad to /static/js/pad.js. 2012-02-27 23:14:49 -08:00
Peter 'Pita' Martischka
611cfbd6fa Merge pull request #468 from cweider/minify-simplify
Minify Simplification
2012-02-27 10:00:18 -08:00
Stefan 'Gared
d2cd1213ec Merge branch 'master' of http://github.com/Pita/etherpad-lite 2012-02-27 15:22:15 +00:00
Peter 'Pita' Martischka
0c77052698 Fixed #299 and #338 2012-02-27 14:20:33 +01:00
Peter 'Pita' Martischka
973aad5c96 Fix doesPadExist check 2012-02-27 14:13:47 +01:00
Peter 'Pita' Martischka
ed8aff22d4 restart abiword on crash and give the user feedback about bad import files 2012-02-27 00:22:53 +01:00
Stefan 'Gared
6706332e42 Merge branch 'master' of http://github.com/Pita/etherpad-lite 2012-02-26 19:52:09 +00:00
Peter 'Pita' Martischka
00c3281a02 Forbid colons, this Fixes #301 2012-02-26 19:59:02 +01:00
Peter 'Pita' Martischka
c3f728b2ed Revert "drop embedding of JS/CSS files in ace.js. May result in a little performance drop but makes code much smaller"
This reverts commit 9ede14a546.
2012-02-26 16:13:07 +01:00
0ip
1b339a6a6d Merge pull request #486 from fourplusone/fix_redirect
use relative path for redirects avoiding problems with reverse proxies
2012-02-25 11:05:26 -08:00
Matthias Bartelmeß
0191c248b5 Merge commit '64f04670efd582230e693a1c6b3c91bc8df27299' into cleanup-ace-fix
Conflicts:
	static/js/ace2_inner.js
2012-02-24 20:22:32 +01:00
Matthias Bartelmeß
9e82aab858 use relative path for redirects avoiding problems with reverse proxies 2012-02-23 20:35:41 +01:00
Stefan 'Gared
38d93eac39 fixed a spelling mistake 2012-02-23 16:01:21 +01:00
Jordan
8bac77ff80 Allow settings filename to be passed as a cli option 2012-02-21 14:20:45 -05:00
Chad Weider
cfe095466f Add some comments. 2012-02-19 20:47:23 -08:00
Chad Weider
98f56b53b4 Use cache for minified assets. 2012-02-19 20:47:23 -08:00
Chad Weider
6a7a3ea3ab Provide a better last modified date for require-kernel. 2012-02-19 20:47:23 -08:00
Chad Weider
78691feec7 Drop all packaging logic from minify. 2012-02-19 20:47:23 -08:00
Chad Weider
3b2a3ad324 It is ok if the directory doesn't exist. 2012-02-19 20:47:23 -08:00
Chad Weider
e0930005c3 Minify serves all static assets. 2012-02-19 20:47:23 -08:00
Chad Weider
df9e29087f Only gzip text files.
It is not very productive to compress images so compress text only.
2012-02-19 20:47:17 -08:00
Chad Weider
aac849f6ea Do not allow relative paths. 2012-02-19 20:43:17 -08:00
Chad Weider
494ca0560b Only add date if date exists. 2012-02-19 20:43:17 -08:00
Chad Weider
ff264aa69a Combine existense and date checks. 2012-02-19 20:43:17 -08:00
Chad Weider
a5006255b7 Last modification is more specific (when possible). 2012-02-19 20:43:17 -08:00
Chad Weider
3da1464ae0 Minify serves the require kernel. 2012-02-19 20:43:17 -08:00
Chad Weider
e33c5a3aac Extract file existance check. 2012-02-19 20:43:17 -08:00
Chad Weider
dcc0740621 Use Yajsml to combine files.
Minify only constructs individual files and optionally compresses them with UglifyJS.
2012-02-19 20:43:17 -08:00
Chad Weider
b661ef5960 Inline response generation. 2012-02-19 20:43:17 -08:00
Chad Weider
bb10f026ca Create CachingMiddleware for zipping and caching. 2012-02-19 20:43:17 -08:00
Chad Weider
43f4184e8d Minify specifies maxAge. 2012-02-19 20:43:17 -08:00
Chad Weider
1fe9d2a21e Allow maxAge of server to be specified in a setting. 2012-02-19 20:43:17 -08:00
Chad Weider
a5365f2547 Support GET and HEAD. 2012-02-19 20:43:17 -08:00
Chad Weider
a09e208b0a Return 404's. 2012-02-19 20:43:17 -08:00
Chad Weider
c2669360d1 Catch 304's early. 2012-02-19 20:43:17 -08:00
Chad Weider
d6d4178dbc Extract lastmodified from handler. 2012-02-19 20:43:17 -08:00
Chad Weider
2797c2fc5b Use the correct expression. 2012-02-19 20:43:17 -08:00
Matthias Bartelmeß
9ede14a546 drop embedding of JS/CSS files in ace.js. May result in a little performance drop but makes code much smaller 2012-02-19 15:02:54 +01:00
Peter 'Pita' Martischka
0d9754760d Merge pull request #458 from fourplusone/master
Should fix #417 and #360
2012-02-17 03:21:26 -08:00
Matthias Bartelmeß
fe6c5e1cfe restructured and commented fixes #417 and #360 in order to make code more intuitive 2012-02-17 11:41:41 +01:00