Comments (3)
Thanks for this. I've updated the documentation on the website and in the README regarding NginX.
I've also uploaded a fix based on yours, which is slightly simpler and which keeps the const assignment to request_string and which avoids creating a separate http_if_modified_since string.
from iipsrv.
@ruven , thanks for the quick response to this.
The reason I created a separate "http_if_modified_since" string variable is to avoid doing a map lookup twice. The performance cost of a string copy is much less than that of a map lookup. Further, if you saw my second commit, brianhelba@2d7592b , it's probably better to check whether the "HTTP_IF_MODIFIED_SINCE" parameter is empty, rather than just checking to see whether it exists at all, which is only possible by looking inside the string. Also, creating a string reference won't work, as it has the side effect of inserting "http_if_modified_since" into the map, which breaks later sections of code.
Finally, while I'm happy to see IIP server being improved, I'd also like to be credited for the code that I write. If you need to modify a pull request, it would be nice if you added a patch of your own on top, instead of copy-pasting portions of else's code and committing it with you listed as the Git author. Alternatively, you can comment on the PR and give the author a chance to modify their own work. It's not a huge problem for a small patch like this, but I'd hope that if I submit larger fixes in the future, you will do the courtesy of ensuring that contributors are credited with Git authorship.
from iipsrv.
Sorry Brian, I did thank and reference you in the commit, but it's true it, in effect, stripped your git author tag.
You're right about the side-effect of inserting an empty "http_if_modified_since" into the map. If you want to resubmit an update of your memcached patch, I'll be happy to merge that directly.
from iipsrv.
Related Issues (20)
- Can't disable webp support HOT 1
- is it possible to change dpi? HOT 2
- [question] jpg support HOT 1
- Questions related with memcached, OpenJPEG and Kakadu HOT 7
- suggestion: do not require webservers and firefox in DEB HOT 2
- fails on file processed with vips, but works if png used as intermediary HOT 5
- Full image loading without watermark HOT 41
- CORS header not always present HOT 3
- No DPI in JPEG files generated by IIP HOT 10
- Compiling with Kakadu 8.3 HOT 5
- FastCGI HOT 1
- How to test? HOT 5
- File names with comma no longer work HOT 4
- Deepzoom with non-pyramidal tiled TIFF HOT 4
- Question: Does iipsrv support lossless WebP format? HOT 3
- Kakadu causes defunct fcgi HOT 9
- Question: How about Grok? HOT 2
- Problem accessing images in subdirectories HOT 2
- Can we scale IIPSRV horizontally? HOT 1
- Question: How to add Kakadu support in Visual Studio 2022? 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 iipsrv.