Skip to content

Commit

Permalink
Try to be more explicit about cache control, prevent transfer from host.
Browse files Browse the repository at this point in the history
You **may** need to hit ctrl-F5 to force a reload without cache to get this
to take effect only the first time.
  • Loading branch information
TheGoddessInari committed Nov 19, 2020
1 parent 0a8ee6d commit 646f0ed
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "netflix-1080p-foxfire",
"version": "1.15.1",
"version": "1.15.2",
"description": "Based on [https://github.com/truedread/netflix-1080p](https://github.com/truedread/netflix-1080p)",
"main": "background.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ browser.webRequest.onBeforeRequest.addListener(
let filter = browser.webRequest.filterResponseData(details.requestId);
let encoder = new TextEncoder();

filter.onstop = event => {
filter.onstart = event => {
fetch(browser.extension.getURL("cadmium-playercore.js"), {
headers: { "cache-control": "no-cache" }
cache: "no-store"
})
.then(response => response.text())
.then(text => {
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "Netflix 1080p",
"description": "Forces 1080p playback for Netflix in Firefox. Based on vladikoff/netflix-1080p-firefox.",
"version": "1.15.1",
"version": "1.15.2",
"author": "truedread and vladikoff",
"content_scripts": [{
"matches": [
Expand Down

0 comments on commit 646f0ed

Please sign in to comment.