Why do so many Ruby on Rails applications have no codes in their URLs? One example is http://basecamphq.com/tour . AFAIK this is contrary to Internet standards. Is this related to how RoR is configured?
This is not against web standards. http://basecamphq.com/tour is considered a file. http://basecamphq.com/tour/ will be a directory (Note: both URLs are not equal, although some web servers, such as Apache, will check the other if it does not exist ) Since both types are virtual, it mainly depends on the developer (it does not depend on the programming languages or frameworks used).
I don’t think this has anything to do with caching (as nilamo mentioned), because HTTP headers are enough to control the cache - maybe some reverse proxies have different default behavior.
Your argument is invalid:
w3c url URL-.
, :
. , "/" (ASCII 2F hex) , .
.
- !
, Rails, . tour.html , , .html , .
, , RoR URL-, , , route.rb, , t .
, - . .
Rails ,
/post/:year/:page
/post/2012/a-title, /post/2012/a-title/, . -.
, . < img src= " image.png" / > : /post/2012/image.png ( ) /post/2012/a-title/image.png ( ), , .
Rails , URL- ! URL-, ... , .
This is a URL rewrite form. This is not against the web standard and actually does a lot for usability and has been proven to help your search engine ranking. Think of it this way.
You tell your friend about this cool post you saw on someone's blog. Which URL is easier to tell a friend:
OR
Source: https://habr.com/ru/post/1720884/More articles:https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1720879/how-to-support-backwards-compatibility-with-the-changes-to-the-accept-header-handling-in-rails-234&usg=ALkJrhi0KSkbRaRY_6pDXnJMsS89iz8jswHow to make a Delphi control panel applet illegal? - delphiInternet Explorer profiler - internet-explorerDouble If Else Problem in C # - c #Tomcat CLASSPATH is different from Java, and it does not include a ".". How do I change it? - javahttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1720885/symbols-or-case-classes-for-sending-messages-to-scala-actors&usg=ALkJrhiskhJzlUJPJmWbytx5_NL7FZ9e5wHow to use MVC results Results from regular web forms (fake ControllerContext)? - c #Невозможно получить уникальные значения - sqlResize image in cm C # - c #Xmlaccess portlet for deployment with link to library - portletAll Articles