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

Reensure a unique eTag for all script storage retrieval #1090

Merged
merged 1 commit into from
Apr 21, 2017

Conversation

Martii
Copy link
Member

@Martii Martii commented Apr 21, 2017

NOTE

  • This makes minification live which is more accurate for debugging purposes but does use more CPU here. mtime was okay but if altering real time the UglifyJS2 source the mtime would be incorrect. EDIT Plus we were doing this already before caching was enabled. :)

Applies to #432 and should be final mod for #1079

* Partial revert of OpenUserJS#1088 but same logic, additional logic, and with less CPU work here
* Partial revert of OpenUserJS#1089... made same logic with eTag and lastModified is no longer needed again
* Cement in the comments and de-emphasize NOTE label for these
* Change maxAge values

*NOTE*
* This makes minification live which is more accurate for debugging purposes but does use more CPU here. mtime was okay but if altering real time the *UglifyJS2* source the mtime would be incorrect.

Applies to OpenUserJS#432 and should be final mod for OpenUserJS#1079
@Martii Martii added bug You've guessed it... this means a bug is reported. 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. labels Apr 21, 2017
@Martii Martii merged commit d5cbc31 into OpenUserJS:master Apr 21, 2017
@Martii Martii deleted the Issue-432eTagUniqueMetaAlt branch April 21, 2017 05:59
Martii pushed a commit to Martii/OpenUserJS.org that referenced this pull request Apr 21, 2017
Martii added a commit that referenced this pull request Apr 21, 2017
@Martii Martii added the needs mitigation Needs additional followup. label Apr 22, 2017
Martii pushed a commit to Martii/OpenUserJS.org that referenced this pull request Apr 24, 2017
* Partial revert of OpenUserJS#1091 / OpenUserJS#1090 ... should be CPU less intensive on production only but still allow live debugging of *UglifyJS2* on development where it would be needed
* Some coding symmetry
* Don't bother re-outputting `Last-Modified` as if it's already in the browser can be a waste of server bandwidth ... nothing found in [specs](https://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html#sec13) saying it has to be out there on a response.

Applies to OpenUserJS#432 and OpenUserJS#1079
Martii added a commit that referenced this pull request Apr 24, 2017
* Partial revert of #1091 / #1090 ... should be CPU less intensive on production only but still allow live debugging of *UglifyJS2* on development where it would be needed
* Some coding symmetry
* Don't bother re-outputting `Last-Modified` as if it's already in the browser can be a waste of server bandwidth ... nothing found in [specs](https://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html#sec13) saying it has to be out there on a response.

Applies to #432 and #1079

Auto-merge
@Martii Martii removed the needs mitigation Needs additional followup. label Apr 24, 2017
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug You've guessed it... this means a bug is reported. 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