Comments (1)
Fixed. This API caches screenshots indefinitely, and thus was causing the bot to send the same screenshot.
Apparently it hashes website URL + passed CSS to create unique IDs. There were some solutions, but injecting invalid CSS code seemed the best approach here:
We could add an extra "junk" fragment or parameter, #like-his
or ?this
at the end of the URL, but that could break when someone wants to screenshot a website that already includes a fragment/breaks when extra parameters are added.
So adding an nonexistent CSS tag seemed the best way to invalidate the screenshot API, while keeping website URL untouched.
from eduurobot.
Related Issues (9)
- Dependabot couldn't authenticate with https://pypi.python.org/simple/
- Dependabot couldn't authenticate with https://pypi.python.org/simple/
- the weather plugin not working HOT 10
- scheduling custom post to repeat itself after set time #future_versions #upgrade #enhancement HOT 2
- Can I add JP HOT 3
- ERROR: File "setup.py" not found. Directory cannot be installed in editable mode HOT 5
- Requests
- `/print` command is not working HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eduurobot.