November 2018
Beginner
472 pages
13h 5m
English
Our menu now works, but if we are driving this with a phone, the links are not very phone/touch-friendly. We suggested we might be able to reuse the stylesheet in the menu. Before we start, add the following cache behavior so we see fresh styles as we did in image_app_core.py. Add the following to menu_server.py:
...@app.after_requestdef add_header(response): response.headers['Cache-Control'] = "no-cache, no-store, must-revalidate" return response...
Read now
Unlock full access