Skip to content

Commit

Permalink
#26 was added random parameter to main.css link for cacheBust supporting
Browse files Browse the repository at this point in the history
  • Loading branch information
karavanjo committed Oct 30, 2014
1 parent b8cab20 commit f1d7537
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion eco/templates/main.mako
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<link rel="stylesheet"
href="${request.static_url('eco:static/js/lib/dropzone/css/dropzone.css')}"/>

<link rel="stylesheet" type="text/css" href="${request.static_url('eco:static/css/main.css')}" media="screen">
<link rel="stylesheet" type="text/css" href="${request.static_url('eco:static/css/main.css')}?${random_int}" media="screen">

<script type="text/javascript">
window.ugrabio = {};
Expand Down
10 changes: 4 additions & 6 deletions eco/views/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,20 @@
import os
import csv
import tempfile
import shutil
import time

from pyramid import security
from pyramid.response import Response
from pyramid.view import view_config
from pyramid.security import has_permission, ACLAllowed, authenticated_userid

from sqlalchemy.exc import DBAPIError


from eco.models import (
DBSession,
User,
table_by_name
)
from eco.models import MultipleResultsFound, NoResultFound

from eco.models import NoResultFound
from eco.utils.try_encode import try_encode
import helpers

Expand All @@ -28,7 +25,8 @@
def home_view(request):
return {
'is_auth': security.authenticated_userid(request),
'is_admin': security.has_permission('admin', request.context, request)
'is_admin': security.has_permission('admin', request.context, request),
'random_int': int(time.time() * 1000)
}


Expand Down

0 comments on commit f1d7537

Please sign in to comment.