Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable script cache from Server to Client #894

Merged
merged 1 commit into from
Feb 9, 2016

Conversation

Martii
Copy link
Member

@Martii Martii commented Feb 9, 2016

  • Set up server to client caching for inline serving of scripts... full manual, direct method e.g. not middleware
  • Server to DB caching is not in this commit... additional MongoDB item will be needed for Script model to skip redoing minification constantly... will be later. During experimental phase this is probably a good thing to hold off on for a bit anyhow.
  • Remove minification request stdout message... already enough data on interest.

Applies to #432 and #249


VPS was extremely busy this morning so this needs to be addressed


And now it's saying cache is disabled on install clicks... bleh... only partially working.

* Set up server to client caching for inline serving of scripts... full manual, direct method e.g. not middleware
* Server to DB caching is not in this commit... additional MongoDB item will be needed for Script model to skip redoing minification constantly... will be later. During experimental phase this is probably a good thing to hold off on for a bit anyhow.
* Remove minification request stdout message... already enough data on interest.

Applies to OpenUserJS#432 and OpenUserJS#439
@Martii Martii added enhancement Something we do have implemented already but needs improvement upon to the best of knowledge. CODE Some other Code related issue and it should clearly describe what it is affecting in a comment. labels Feb 9, 2016
Martii added a commit that referenced this pull request Feb 9, 2016
Enable script cache from Server to Client

Auto-merge
@Martii Martii merged commit 80f58ff into OpenUserJS:master Feb 9, 2016
@Martii Martii deleted the Issue-432inlineCaching branch February 9, 2016 18:53
@Martii Martii added the needs mitigation Needs additional followup. label Feb 9, 2016
Martii pushed a commit to Martii/OpenUserJS.org that referenced this pull request Feb 9, 2016
* See why server file caching is the way to go with *node*... will need to live with this until *UglifyJS2* harmony is released and update in *express-minify*
* Minus the console message too

Applies to OpenUserJS#432 and OpenUserJS#249
Martii added a commit that referenced this pull request Feb 9, 2016
@Martii Martii removed the needs mitigation Needs additional followup. label Feb 9, 2016
Martii pushed a commit to Martii/OpenUserJS.org that referenced this pull request Apr 4, 2017
* Caching works well but GM kills it with `channel.LOAD_BYPASS_CACHE` and TM also uses `no-cache` to retrieve initial .user.js. According to TM author libraries don't use `no-cache`. Other engines to be tested after merge.

Applies to OpenUserJS#432 and OpenUserJS#249. Possible addition to OpenUserJS#944 down the line. Regression managed from detection and revert in OpenUserJS#894
Martii added a commit that referenced this pull request Apr 4, 2017
* Caching works well but GM kills it with [`channel.LOAD_BYPASS_CACHE`](https://github.com/greasemonkey/greasemonkey/blob/696848acc40c6395904a53acdc15a653d5be502c/modules/remoteScript.js#L606) and TM also uses `no-cache` to retrieve initial .user.js. According to TM author libraries *(`@require` and `@resource` inclusions)* don't use `no-cache`. Other engines to be tested after merge.

Applies to #432 and #249. Possible addition to #944 down the line. Regression managed from detection and revert in #894
Martii pushed a commit to Martii/OpenUserJS.org that referenced this pull request Apr 4, 2017
* * Caching works well but GM kills it with [`channel.LOAD_BYPASS_CACHE`](https://github.com/greasemonkey/greasemonkey/blob/696848acc40c6395904a53acdc15a653d5be502c/modules/remoteScript.js#L606)

**NOTE** Keep this at one day, possibly for long term.

Applies to OpenUserJS#432 and OpenUserJS#249. Possible addition to OpenUserJS#944 down the line. Regression **not** present, nor needed, from detection and revert in OpenUserJS#894 . Script meta should always be the same whether minified fork or original
Martii added a commit that referenced this pull request Apr 4, 2017
* Enable meta cache from Server to Client

* * Caching works well but GM kills it with [`channel.LOAD_BYPASS_CACHE`](https://github.com/greasemonkey/greasemonkey/blob/696848acc40c6395904a53acdc15a653d5be502c/modules/remoteScript.js#L606)

**NOTE** Keep this at one day, possibly for long term.

Applies to #432 and #249. Possible addition to #944 down the line. Regression **not** present, nor needed, from detection and revert in #894 . Script meta should always be the same whether minified fork or original

* Scoot identifier declaration down a little

Applies to #432 and #249. Possible addition to #944 down the line.
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CODE Some other Code related issue and it should clearly describe what it is affecting in a comment. enhancement Something we do have implemented already but needs improvement upon to the best of knowledge.
Development

Successfully merging this pull request may close these issues.

1 participant