[SOLVED] What does the m=NNNNNNN at the end of URLs stand for?

MarkRH

Joined: 2007-05-25
Posts: 178
Posted: Fri, 2010-07-30 22:18

At the end of many image URLs, it has ..whatever.jpg?m=NNNNNNNN where NNNNNNNN is some number. What does the number represent? Usually I just remove it when I display the image in a forum or something. Is it a user or image ID of some kind?

This is using Gallery 3 RC2.

Thanks,
Mark H.

Using Gallery 2.2.6 - gallery.markheadrick.com

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22888
Posted: Fri, 2010-07-30 23:54

It is for preventing caching issues.
Not sure if the http://codex.gallery2.org/Gallery3:Modules:embedlinks module helps in what you are after or not.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
MarkRH

Joined: 2007-05-25
Posts: 178
Posted: Sat, 2010-07-31 00:55

Thanks for pointing me towards that. Helps getting the links anyway. Guess my main question is, should we be including that number in the URL for caching/performance reasons?

Thanks,
Mark H.

Using Gallery 2.2.6 - gallery.markheadrick.com

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22888
Posted: Sat, 2010-07-31 16:43

You can use uls without the number.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7934
Posted: Sat, 2010-07-31 19:09

You can safely ignore that value. By using that value, we can have your browser only download an image when its changed. Otherwise we have the problem that you rotate an image and we show you the old one, or alternatively we have to have you download the images every time you view a page (really inefficient).
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git

 
MarkRH

Joined: 2007-05-25
Posts: 178
Posted: Mon, 2010-08-02 09:24

Ahhh.. OK. Thanks for clearing that up.

Thanks,
Mark H.

Using Gallery 2.2.6 - gallery.markheadrick.com