Skip to content

Commit b67cb2c

Browse files
committed
cleanup
1 parent e91d1ad commit b67cb2c

File tree

3 files changed

+2
-12
lines changed

3 files changed

+2
-12
lines changed

routes/cache.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default function(req, res, next){
3434
res.set('Cache-Control', `public, max-age=60, stale-while-revalidate=${cdn_cache}`);
3535

3636
if(doc){
37-
const revision = 15; // bump to invalidate all caches
37+
const revision = 16; // bump to invalidate all caches
3838
const etag = `W/"${doc._id}${revision}"`;
3939
const date = new Date(doc._published.getTime() + revision * 1000).toUTCString();
4040
res.set('ETag', etag);

routes/universe.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,7 @@ function get_contrib_data(user, max = 20){
126126
//See https://github.com/r-universe-org/help/issues/574
127127
function send_s3_list(req, res){
128128
if(req.query['x-id'] == 'ListBuckets'){
129-
return res.type('application/xml').render('S3Bucket');
130-
}
131-
if(req.query['list-type'] != '2'){
132-
throw createError(400, "Only list-type=2 is supported");
129+
throw createError(400, "Please use virtual hosted style buckets on r-universe.dev TLD");
133130
}
134131
var universe = res.locals.universe;
135132
var delimiter = req.query['delimiter'];

views/S3Bucket.pug

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)