question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow loading without timestamps

See original GitHub issue

Currently every <script src...> or import … is loaded with an timestamp. I am trying to write an offline application, which should run in mobile, but this “feature” block to load my app from cache. Is it possible to disable adding timestamp for loaded .py files? Loaded file urls:

https://hostname/main.py?1576766629012
https://hostname/module.py?v=1576766629155

It it possible to disable this behaviour or do we need another option for brython() function?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
PierreQuentelcommented, Dec 22, 2019

In the commit referenced above I have added an option “cache” to the brython() function, eg :

<body onload="brython({debug: 1, cache: true})`

This removes the query string in the Ajax calls that load external scripts (<script type="text/python" src="script.py">) and those that import modules.

Does it solve the issue ?

0reactions
ondrejjcommented, Dec 22, 2019

brython --modules runs on my source directory 20-30 seconds due to files, which are not needed in my game, but present in this directory. Currently I need these files here, but don’t want to be scanned using brython --modules.

I need to run brython --modules to create brython_modules.js only with browser.timer, nothing else. For this currently I have this content in my “js” directory: from browser import timer Runnning brython --modules in this directory creates brython_modules.js as I need them.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Disable Laravel's Eloquent timestamps - php - Stack Overflow
10 Answers 10 · 2. This worked for me because setting $timestamps = false caused created_at->diffForHumans() method to stop working since it's no...
Read more >
incremental load with no date or timestamp field
Hello, I have a few tables, which do not have the date/timestamp field to show when was the row modified. the tables are...
Read more >
YouTube Chapters : Timestamps Not Working (HOW TO FIX)
YouTube has started to make the search page more visual by adding video chapters so viewers can get a better glimpse of what's...
Read more >
How To: Display date fields in labels without timestamps using ...
Click the Verify button to validate the expression. Click Apply to run the script. The image below shows labels displaying the date field ......
Read more >
Commit timestamps in Google Standard SQL-dialect databases
This topic describes how to write a commit timestamp for each insert and update operation that you perform with Spanner.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found