나는 CSS와 자바 스크립트를 작게를 위해 Reducisaurus Web Service를 사용하기 위해 노력하고있어하지만 난 문제로 실행했습니다건물 Reducisaurus URL을
나는 두 unminified CSS를 한 것으로 가정 해 보겠습니다 :
http:/domain.com/dynamic/styles/theme.php?color=red
http:/domain.com/dynamic/styles/typography.php?font=Arial
에 따르면 워드 프로세서에이 같은 웹 서비스 호출해야합니다 :
:http:/reducisaurus.appspot.com/css?url=http:/domain.com/dynamic/styles/theme.php?color=red
을 그리고 나는 한 번에 두 CSS 파일을 작게를하려는 경우 0
http:/reducisaurus.appspot.com/css?url1=http:/domain.com/dynamic/styles/theme.php?color=red&url2=http:/domain.com/dynamic/styles/theme.php?color=red
내가 캐시 (예를 들어 3600) 초 다른 번호를 지정하고 싶었다면 내가 사용하는 것이 : 모두 CSS 파일
http:/reducisaurus.appspot.com/css?url=http:/domain.com/dynamic/styles/theme.php?color=red&expire_urls=3600
그리고 다시를 한 번에 :
http:/reducisaurus.appspot.com/css?url1=http:/domain.com/dynamic/styles/theme.php?color=red&url2=http:/domain.com/dynamic/styles/theme.php?color=red&expire_urls=3600
이제 제 질문은 Reducisaurus가 원하는 URL을 어떻게 분리 할 수 있는지 어떻게 알 수 있습니까? &expire_urls=3600
이 URL의 일부가 아닌 것을 어떻게 알 수 있습니까? 그리고 &url2=...
이 (가) url1
의 GET 인수가 아닌 것을 어떻게 알 수 있습니까? 나는이 일을 제대로하고 있니? 내 URL urlencode
이 필요합니까?
나는 소스 코드에 엿봄을 가져다가 내 자바는 매우 가난하지만 그것은 methods acquireFromRemoteUrl()
and getSortedParameterNames()
from the BaseServlet.java file 내 질문에 대한 답변을 개최 것 같다 -는 GET 인수 이름이 포함 된 경우 -
또는 _
가 이를 무시해야한다?!
&url(n)
은?
고마워, 그게 내가 한거야. urlencoding에 관해서는, 그것은 필요한가? –