Commit Graph

27 Commits

Author SHA1 Message Date
Martin Charles
fb8655769e Fixed Caching and Cleaned up Old Caching
Caching was broken for many reasons:
* Puma calls `Travis::Web::App.initilize` multiple times. This caused
the server start time to be incorrect, breaking caching.
* The `Date` HTTP header was missing. This caused some browsers to fail to cache
assets.
* The `ETag` was incorrectly formatted.

Some other things which were changed:
* Removed `Rack::Cache`
2014-05-21 11:50:09 -04:00
Sven Fuchs
47765ba8c0 try disabling rack/cache 2013-02-26 23:11:40 +01:00
Sven Fuchs
941d1391bb move AltVersions to its own file, try setting domain and secure on the cookie 2013-02-26 19:05:49 +01:00
Sven Fuchs
bc4092ad4d simplify app creation and rename "custom_branch" to "alt" 2013-02-25 17:42:03 +01:00
Piotr Sarnacki
9cf20d774d Don't shadow options method in set_config 2013-02-22 22:54:09 +01:00
Piotr Sarnacki
aa43803811 Allow to set "custom_branch" for assets
When custom-branch param is set, travis-web will serve assets from S3
from given branch (the compiled assets are uploaded to S3 on each
build). Cookie will also be set to serve assets from this branch until
disabled.

Custom branch may be disabled by passing disable-custom-branch=true
param.
2013-02-21 22:12:33 +01:00
Sven Fuchs
ee50cbd1e7 disable MobileRedirect, which does not seem to work, we are now using Rack::MobileRedirect 2012-12-14 15:52:58 +01:00
Konstantin Haase
bb53bceb46 fix constant name 2012-12-12 23:39:03 +01:00
Konstantin Haase
726190634b add protection 2012-12-12 23:33:43 +01:00
Piotr Sarnacki
7ad4ed1109 Redirect to old version of travis for mobile clients
We're planning support for a new mobile client, but for the time being
we will just redirect to the old app.
2012-11-12 19:37:57 +01:00
Konstantin Haase
01b5a118d0 spec and fix app 2012-10-22 21:23:34 +02:00
Piotr Sarnacki
718b3ad88f Fix spec.html serving 2012-10-19 01:52:48 +02:00
Sven Fuchs
52bdbf5468 Merge branch 'master' of github.com:travis-ci/travis-web
Conflicts:
	public/scripts/app.js
	public/scripts/min/app.js
	public/styles/app.css
	public/version
	script/server
2012-10-18 03:55:17 +02:00
Sven Fuchs
90fb2c3b78 add broadcasts 2012-10-18 03:53:19 +02:00
Konstantin Haase
d4404b201c switch to puma, make app reload in development mode 2012-10-17 16:19:42 +02:00
Konstantin Haase
5c8035b7a8 add back rack-cache 2012-10-16 19:15:16 +02:00
Konstantin Haase
1f9e19ac0e send empty Vary header 2012-10-16 18:54:32 +02:00
Konstantin Haase
4fd46ad944 header must be fixnum 2012-10-16 18:49:57 +02:00
Konstantin Haase
ab866b4fe2 no longer run api 2012-10-16 18:42:37 +02:00
Sven Fuchs
ba685b1593 set cache headers, can't get rack/cache to behave though 2012-10-11 20:05:33 +02:00
Sven Fuchs
86ab67feb2 try using rack cache for in memory caching 2012-10-11 18:46:33 +02:00
Sven Fuchs
3052db733b parse pusher key into the index.html like the api endpoint 2012-10-10 13:21:52 +02:00
Sven Fuchs
f8aa108c46 fix asset dirs constant 2012-10-08 13:41:35 +02:00
Sven Fuchs
41ab0c4cb0 set content on user permissions array proxy 2012-10-08 13:38:13 +02:00
Sven Fuchs
419ace7c51 rework asset compilation 2012-10-01 12:36:06 +02:00
Sven Fuchs
cdd6f0047a change SCRIPT_NAME when changing PATH_INFO, add X-CASCADE header 2012-09-30 18:35:44 +02:00
Sven Fuchs
73fe04185d split up config.ru 2012-09-30 17:30:57 +02:00