Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(343)

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/update-nocookie-worker.py

Issue 2415873002: Import w3c tests for the service workers (Closed)
Patch Set: Rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 import time
2
3 def main(request, response):
4 # no-cache itself to ensure the user agent finds a new version for each upda te.
5 headers = [('Cache-Control', 'no-cache, must-revalidate'),
6 ('Pragma', 'no-cache')]
7
8 # Set a normal mimetype.
9 content_type = 'application/javascript'
10
11 headers.append(('Content-Type', content_type))
12 # Return a different script for each access. Use .time() and .clock() for
13 # best time resolution across different platforms.
14 return headers, '// %s %s' % (time.time(), time.clock())
15
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698